add xset command

This commit is contained in:
lyx0 2021-11-06 21:03:03 +01:00
parent ecbf931aac
commit 60068b7175
2 changed files with 27 additions and 2 deletions

9
pkg/commands/xset.go Normal file
View file

@ -0,0 +1,9 @@
package commands
import "github.com/lyx0/nourybot/cmd/bot"
func Xset(target string, nb *bot.Bot) {
reply := "xset r rate 175 50"
nb.Send(target, reply)
}

View file

@ -408,7 +408,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
}
case "streamlink":
if message.Channel == "nouryqt" || message.Channel == "nourybot" {
if target == "nouryqt" || target == "nourybot" {
commands.Streamlink(target, nb)
return
} else {
@ -416,7 +416,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
}
case "streamlinkconfig":
if message.Channel == "nouryqt" || message.Channel == "nourybot" {
if target == "nouryqt" || target == "nourybot" {
commands.Streamlink(target, nb)
return
} else {
@ -502,5 +502,21 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "xkcd":
commands.Xkcd(target, nb)
return
case "rave":
if target == "nouryqt" || target == "nourybot" {
commands.Rave(target, nb)
return
} else {
return
}
case "xset":
if target == "nouryqt" || target == "nourybot" {
commands.Xset(target, nb)
return
} else {
return
}
}
}