move command handler to handlers package

This commit is contained in:
lyx0 2021-10-14 01:36:42 +02:00
parent 4b4a949ce3
commit c3ec7a6fd3
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,4 @@
package commands
package handlers
import (
"strings"

View file

@ -2,7 +2,6 @@ package handlers
import (
"github.com/gempir/go-twitch-irc/v2"
"github.com/lyx0/nourybot/pkg/commands"
"github.com/lyx0/nourybot/pkg/config"
log "github.com/sirupsen/logrus"
)
@ -39,7 +38,7 @@ func HandlePrivateMessage(message twitch.PrivateMessage, client *twitch.Client,
// Message starts with (), pass it on to
// the command handler.
if message.Message[:2] == "()" {
commands.HandleCommand(message, client)
HandleCommand(message, client)
return
}
}