Documentation
¶
Index ¶
- func Run(cfg Config, s SimStoreWithDB) error
- type Bot
- func (b *Bot) Approve(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) DBList(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) Delete(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) Help(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) List(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) Reject(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) Replace(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) ShowConfig(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) Submit(s *discordgo.Session, m *discordgo.MessageCreate)
- type Config
- type SimStoreWithDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(cfg Config, s SimStoreWithDB) error
Types ¶
type Bot ¶
type Bot struct { Log *zap.SugaredLogger Store SimStoreWithDB // contains filtered or unexported fields }
func (*Bot) ShowConfig ¶
func (b *Bot) ShowConfig(s *discordgo.Session, m *discordgo.MessageCreate)
type SimStoreWithDB ¶
type SimStoreWithDB interface { store.SimStore store.SimDBStore }
Click to show internal directories.
Click to hide internal directories.