From 4b4a949ce317374cc4e817c304b5b82776ef8fe7 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Thu, 14 Oct 2021 01:36:30 +0200 Subject: [PATCH] remove OnPrivateMessage --- cmd/bot/bot.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/bot/bot.go b/cmd/bot/bot.go index d62cc93..e7ca61b 100644 --- a/cmd/bot/bot.go +++ b/cmd/bot/bot.go @@ -2,7 +2,6 @@ package bot import ( twitch "github.com/gempir/go-twitch-irc/v2" - "github.com/lyx0/nourybot/pkg/commands" cfg "github.com/lyx0/nourybot/pkg/config" "github.com/lyx0/nourybot/pkg/handlers" log "github.com/sirupsen/logrus" @@ -52,13 +51,6 @@ func (b *Bot) Say(channel string, message string) { b.twitchClient.Say(channel, message) } -func (b *Bot) OnPrivateMessage(message *twitch.PrivateMessage) { - log.Info("fn OnPrivateMessage") - - tc := b.twitchClient - commands.HandleCommand(*message, tc) -} - func (b *Bot) Join(channel string) { log.Info("fn Join") b.twitchClient.Join(channel)