discord

package
v0.0.0-...-db890f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(srv *xmpp.XmppServer, logger zerolog.Logger) (plugin.Plugin, error)

Types

type Config

type Config struct {
	Enabled          bool
	Token            string
	AvatarURL        string `toml:"avatar_url"`
	InfoURL          string `toml:"info_url"`
	NotLinkedMessage string `toml:"not_linked_message"`
	QueueSize        int    `toml:"queue_size"`
	Channels         map[string]string
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) OnMessage

func (p *Plugin) OnMessage(msg *plugin.Message)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL