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