mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
remove OnPrivateMessage
This commit is contained in:
parent
c67f9739df
commit
4b4a949ce3
1 changed files with 0 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue