diff --git a/pkg/commands/xd.go b/pkg/commands/xd.go index cdff10d..1afda65 100644 --- a/pkg/commands/xd.go +++ b/pkg/commands/xd.go @@ -1 +1,7 @@ package commands + +import "github.com/gempir/go-twitch-irc/v2" + +func Xd(channel string, client *twitch.Client) { + client.Say(channel, "xd") +} diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index b59ee17..3f1ff7c 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -41,7 +41,7 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u } return case "xd": - twitchClient.Say(message.Channel, "xd") + commands.Xd(message.Channel, twitchClient) return case "echo": commands.Echo(message.Channel, message.Message[7:len(message.Message)], twitchClient)