mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
merge whisper and private messages into one file
This commit is contained in:
parent
58b02f178e
commit
471b02559f
|
@ -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,
|
||||
)
|
||||
}
|
|
@ -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,
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue