rework services and add test command

This commit is contained in:
Dustin Pianalto
2021-01-23 03:53:34 -09:00
parent ccfecd0965
commit 28691e72fb
5 changed files with 68 additions and 32 deletions
+3 -2
View File
@@ -1,11 +1,11 @@
package exts
import (
"github.com/dustinpianalto/geeksbot"
"github.com/dustinpianalto/disgoman"
"github.com/dustinpianalto/geeksbot/internal/exts/utils"
)
func AddCommandHandlers(g *geeksbot.Geeksbot) {
func AddCommandHandlers(g *disgoman.CommandManager) {
// Arguments:
// name - command name - string
// desc - command description - string
@@ -15,6 +15,7 @@ func AddCommandHandlers(g *geeksbot.Geeksbot) {
// type - command type, sets where the command is available
// run - function to run - func(anpan.Context, []string) / CommandRunFunc
_ = g.AddCommand(utils.UserCommand)
_ = g.AddCommand(utils.AddUserCommand)
_ = g.AddCommand(utils.SayCommand)
_ = g.AddCommand(utils.GitCommand)
_ = g.AddCommand(utils.InviteCommand)