remove OnPrivateMessage

This commit is contained in:
lyx0 2021-10-14 01:36:30 +02:00
parent c67f9739df
commit 4b4a949ce3

View file

@ -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)