From f56ab3c396e91ad24a8982e5294595bb8cd5f9fe Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Thu, 4 Nov 2021 18:31:36 +0100 Subject: [PATCH] add farming command --- pkg/commands/farm.go | 8 ++++++++ pkg/handlers/command.go | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkg/commands/farm.go diff --git a/pkg/commands/farm.go b/pkg/commands/farm.go new file mode 100644 index 0000000..3432800 --- /dev/null +++ b/pkg/commands/farm.go @@ -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") +} diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index 6feffe2..4361760 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -144,6 +144,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { commands.EmoteLookup(target, cmdParams[1], nb) return + case "farm": + if target != "nouryqt" { + return + } else { + commands.Farm(target, nb) + return + } + case "ffz": if msgLen == 1 { nb.Send(target, "Usage: ()ffz [emote]")