From 1e4e56ddf69877c24d9c89ec661cb2644644c328 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Tue, 19 Oct 2021 22:39:25 +0200 Subject: [PATCH] add ping command --- pkg/handlers/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index b891f5c..06e7df1 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -5,6 +5,7 @@ import ( "github.com/gempir/go-twitch-irc/v2" "github.com/lyx0/nourybot/cmd/bot" + "github.com/lyx0/nourybot/pkg/commands" "github.com/sirupsen/logrus" ) @@ -35,6 +36,8 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { nb.Send(message.Channel, cmdParams[1]) return } + case "ping": + commands.Ping(message.Channel, nb) } }