notifications

package
v0.0.0-...-07de05f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserConfigNotificationsLayoutModeKey = "notifications:layout-mode"
)

Variables

View Source
var (
	ValidTextDelimiters = []string{
		" ", ".", ",", "?", "!", ";", "(", ")", "=", "\"", "'", "`", "´", "_", "~", "+", "-", "/", ":", "*", "\n", "…", "’", "“", "‘", "[", "]",
	}
	WhitelistedBotIDs = []string{
		"430101373397368842",

		"178215222614556673",
		"232927528325611521",

		"309026207104761858",
		"426398711896080384",
		"308942631696859148",
		"426685461793341451",
		"308942526570561536",
		"430089364417150976",
		"633601942077046786",
	}
)
View Source
var (
	KeywordsNotFoundError = errors.New("keyword(s) not found")
)

Functions

This section is empty.

Types

type Handler

type Handler struct{}

func (*Handler) Action

func (m *Handler) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Handler) Commands

func (m *Handler) Commands() []string

func (*Handler) Init

func (m *Handler) Init(session *shardmanager.Manager)

func (*Handler) OnMessage

func (m *Handler) OnMessage(session *discordgo.Session, msg *discordgo.MessageCreate)

func (*Handler) Uninit

func (m *Handler) Uninit(session *shardmanager.Manager)

type PendingNotification

type PendingNotification struct {
	Member   *discordgo.Member
	Author   *discordgo.Member
	Keywords []string
}

Jump to

Keyboard shortcuts

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