Documentation
¶
Index ¶
- func New(n string) meido.Mod
- func NewAquariumCommand(m *PingMod) *meido.ModCommand
- func NewFishCommand(m *PingMod) *meido.ModCommand
- func NewMonkeyCommand(m *PingMod) *meido.ModCommand
- func NewPingCommand(m *PingMod) *meido.ModCommand
- type PingMod
- func (m *PingMod) AllowDMs() bool
- func (m *PingMod) AllowedTypes() meido.MessageType
- func (m *PingMod) Commands() map[string]*meido.ModCommand
- func (m *PingMod) Hook(b *meido.Bot) error
- func (m *PingMod) Load() error
- func (m *PingMod) Name() string
- func (m *PingMod) Passives() []*meido.ModPassive
- func (m *PingMod) RegisterCommand(cmd *meido.ModCommand)
- func (m *PingMod) Save() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAquariumCommand ¶
func NewAquariumCommand(m *PingMod) *meido.ModCommand
NewAquariumCommand returns a new aquarium command.
func NewFishCommand ¶
func NewFishCommand(m *PingMod) *meido.ModCommand
NewFishCommand returns a new fish command.
func NewMonkeyCommand ¶
func NewMonkeyCommand(m *PingMod) *meido.ModCommand
NewMonkeyCommand returns a new monkey command.
func NewPingCommand ¶
func NewPingCommand(m *PingMod) *meido.ModCommand
NewPingCommand returns a new ping command.
Types ¶
type PingMod ¶
type PingMod struct { sync.Mutex Aquariums map[string]*aquarium // contains filtered or unexported fields }
PingMod represents the ping mod
func (*PingMod) AllowedTypes ¶
func (m *PingMod) AllowedTypes() meido.MessageType
AllowedTypes returns the allowed MessageTypes.
func (*PingMod) Commands ¶
func (m *PingMod) Commands() map[string]*meido.ModCommand
Commands returns the mod commands.
func (*PingMod) Passives ¶
func (m *PingMod) Passives() []*meido.ModPassive
Passives returns the mod passives.
func (*PingMod) RegisterCommand ¶
func (m *PingMod) RegisterCommand(cmd *meido.ModCommand)
RegisterCommand registers a ModCommand to the Mod
Click to show internal directories.
Click to hide internal directories.