Basic bot structure
This commit is contained in:
parent
6ade91132d
commit
dc86a8c4d8
@ -1 +1,9 @@
|
||||
package exts
|
||||
|
||||
import (
|
||||
"github.com/dustinpianalto/disgoman"
|
||||
)
|
||||
|
||||
func AddCommands(h *disgoman.CommandManager) {
|
||||
|
||||
}
|
||||
|
||||
9
main.go
9
main.go
@ -7,6 +7,7 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
"github.com/dustinpianalto/dice/exts"
|
||||
"github.com/dustinpianalto/disgoman"
|
||||
)
|
||||
|
||||
@ -50,12 +51,8 @@ func main() {
|
||||
CheckPermissions: false,
|
||||
}
|
||||
|
||||
// Add Command Handlers
|
||||
exts.AddCommandHandlers(&handler)
|
||||
|
||||
//if _, ok := handler.Commands["help"]; !ok {
|
||||
// handler.AddDefaultHelpCommand()
|
||||
//}
|
||||
// Add Commands
|
||||
exts.AddCommands(&handler)
|
||||
|
||||
dg.AddHandler(handler.OnMessage)
|
||||
dg.AddHandler(handler.StatusManager.OnReady)
|
||||
|
||||
5
pkg/roller/roller.go
Normal file
5
pkg/roller/roller.go
Normal file
@ -0,0 +1,5 @@
|
||||
package roller
|
||||
|
||||
func ParseRollString(s string) int {
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user