add streamlink command

This commit is contained in:
lyx0 2021-11-06 20:58:36 +01:00
parent f56ab3c396
commit ecbf931aac
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,9 @@
package commands
import "github.com/lyx0/nourybot/cmd/bot"
func Streamlink(target string, nb *bot.Bot) {
reply := `https://haste.zneix.eu/udajirixep put this in ~/.config/streamlink/config on Linux (or %appdata%\streamlink\streamlinkrc on Windows)`
nb.Send(target, reply)
}

View file

@ -152,6 +152,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return
}
case "farming":
if target != "nouryqt" {
return
} else {
commands.Farm(target, nb)
return
}
case "ffz":
if msgLen == 1 {
nb.Send(target, "Usage: ()ffz [emote]")
@ -399,6 +407,22 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return
}
case "streamlink":
if message.Channel == "nouryqt" || message.Channel == "nourybot" {
commands.Streamlink(target, nb)
return
} else {
return
}
case "streamlinkconfig":
if message.Channel == "nouryqt" || message.Channel == "nourybot" {
commands.Streamlink(target, nb)
return
} else {
return
}
case "thumb":
if msgLen == 1 {
nb.Send(target, "Usage: ()thumb [channel]")