mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add xset command
This commit is contained in:
parent
ecbf931aac
commit
60068b7175
2 changed files with 27 additions and 2 deletions
9
pkg/commands/xset.go
Normal file
9
pkg/commands/xset.go
Normal 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)
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue