alexvanin
f0f31a8415
This commits adds new feature for galchedbot: video requests in the twitch chat via highlighted chat messages. This messages parsed by the bot and added to the video queue, that can be accessed by the dedicated web server. Video queue requires authorization based on random token added to the cookies.
16 lines
262 B
Go
16 lines
262 B
Go
package twitchat
|
|
|
|
import (
|
|
"github.com/gempir/go-twitch-irc/v2"
|
|
)
|
|
|
|
type (
|
|
Responser interface {
|
|
Say(channel, message string)
|
|
}
|
|
|
|
PrivateMessageHandler interface {
|
|
IsValid(m *twitch.PrivateMessage) bool
|
|
Handle(m *twitch.PrivateMessage, r Responser)
|
|
}
|
|
)
|