github.com/starshine-sys/bcr@v0.21.0/bot/module.go (about) 1 package bot 2 3 import ( 4 "github.com/starshine-sys/bcr" 5 ) 6 7 type botModule struct { 8 name string 9 commands bcr.Commands 10 } 11 12 // String returns the module's name 13 func (b botModule) String() string { 14 return b.name 15 } 16 17 // Commands returns a list of commands 18 func (b *botModule) Commands() []*bcr.Command { 19 return b.commands 20 }