This commit is contained in:
lyx0 2021-10-15 18:42:13 +02:00
parent 4034999fac
commit 1ebe3f860a
2 changed files with 7 additions and 1 deletions

View file

@ -1 +1,7 @@
package commands
import "github.com/gempir/go-twitch-irc/v2"
func Xd(channel string, client *twitch.Client) {
client.Say(channel, "xd")
}

View file

@ -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)