mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
move command handler to handlers package
This commit is contained in:
parent
4b4a949ce3
commit
c3ec7a6fd3
|
@ -1,4 +1,4 @@
|
|||
package commands
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"strings"
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue