add farming command

This commit is contained in:
lyx0 2021-11-04 18:31:36 +01:00
parent eb674712e0
commit f56ab3c396
2 changed files with 16 additions and 0 deletions

8
pkg/commands/farm.go Normal file
View file

@ -0,0 +1,8 @@
package commands
import "github.com/lyx0/nourybot/cmd/bot"
func Farm(target string, nb *bot.Bot) {
nb.Send(target, "Trees: https://oldschool.runescape.wiki/w/Crop_running#Example_tree_run_sequence")
nb.Send(target, "Herbs: https://oldschool.runescape.wiki/w/Crop_running#Example_allotment,_flower_and_herb_run_sequence")
}

View file

@ -144,6 +144,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.EmoteLookup(target, cmdParams[1], nb) commands.EmoteLookup(target, cmdParams[1], nb)
return return
case "farm":
if target != "nouryqt" {
return
} else {
commands.Farm(target, nb)
return
}
case "ffz": case "ffz":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()ffz [emote]") nb.Send(target, "Usage: ()ffz [emote]")