Basic bot structure

This commit is contained in:
Dustin Pianalto 2020-09-09 12:23:50 -08:00
parent 6ade91132d
commit dc86a8c4d8
3 changed files with 16 additions and 6 deletions

View File

@ -1 +1,9 @@
package exts
import (
"github.com/dustinpianalto/disgoman"
)
func AddCommands(h *disgoman.CommandManager) {
}

View File

@ -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
View File

@ -0,0 +1,5 @@
package roller
func ParseRollString(s string) int {
}