2019-06-23 13:12:35 +00:00
|
|
|
package twitchat
|
|
|
|
|
|
|
|
import (
|
2019-07-20 19:14:07 +00:00
|
|
|
"github.com/gempir/go-twitch-irc/v2"
|
2019-06-23 13:12:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
2019-07-20 19:14:07 +00:00
|
|
|
Responser interface {
|
|
|
|
Say(channel, message string)
|
|
|
|
}
|
|
|
|
|
|
|
|
PrivateMessageHandler interface {
|
2020-01-11 19:38:51 +00:00
|
|
|
IsValid(m *twitch.PrivateMessage) bool
|
2019-07-20 19:14:07 +00:00
|
|
|
Handle(m *twitch.PrivateMessage, r Responser)
|
2019-06-23 13:12:35 +00:00
|
|
|
}
|
|
|
|
)
|