merge whisper and private messages into one file

This commit is contained in:
lyx0 2022-08-09 21:25:32 +02:00
parent 58b02f178e
commit 471b02559f
2 changed files with 10 additions and 13 deletions

View file

@ -38,3 +38,13 @@ func (app *Application) handlePrivateMessage(message twitch.PrivateMessage) {
) )
} }
func (app *Application) handleWhisperMessage(message twitch.WhisperMessage) {
// Print the whisper message for now.
// TODO: Implement a basic whisper handler.
app.Logger.Infow("Whisper Message received",
"message", message,
"message.User.DisplayName", message.User.DisplayName,
"message.Message", message.Message,
)
}

View file

@ -1,13 +0,0 @@
package main
import "github.com/gempir/go-twitch-irc/v3"
func (app *Application) handleWhisperMessage(message twitch.WhisperMessage) {
// Print the whisper message for now.
// TODO: Implement a basic whisper handler.
app.Logger.Infow("Whisper Message received",
"message", message,
"message.User.DisplayName", message.User.DisplayName,
"message.Message", message.Message,
)
}