Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler struct { Command CmdMap MS *MongoSession }
func NewCommandHandler ¶
func NewCommandHandler() *CommandHandler
func NewCommandHandlerWithDB ¶
func NewCommandHandlerWithDB(db, collection string) *CommandHandler
func (CommandHandler) AddCommand ¶
func (ch CommandHandler) AddCommand(c Command)
func (CommandHandler) OnMessage ¶
func (ch CommandHandler) OnMessage(message string, s *discordgo.Session, m *discordgo.MessageCreate)
type Context ¶
type Context struct { S *discordgo.Session M *discordgo.MessageCreate Args []string MS *MongoSession }
type MongoSession ¶
type MongoSession struct {
// contains filtered or unexported fields
}
func InitDB ¶
func InitDB(db, collection string) (*MongoSession, error)
func (MongoSession) CreateGuildConfig ¶
func (ms MongoSession) CreateGuildConfig(guildID string) error
func (MongoSession) GetDisabledCommands ¶
func (ms MongoSession) GetDisabledCommands(guildID string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.