1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-20 02:00:49 +00:00
strimertul/modules/twitch/commands.go
2021-09-17 10:54:55 +02:00

30 lines
702 B
Go

package twitch
import (
irc "github.com/gempir/go-twitch-irc/v2"
)
type AccessLevelType string
const (
ALTEveryone AccessLevelType = "everyone"
ALTVIP AccessLevelType = "vip"
ALTModerators AccessLevelType = "moderators"
ALTStreamer AccessLevelType = "streamer"
)
type BotCommandHandler func(bot *Bot, message irc.PrivateMessage)
type BotCommand struct {
Description string
Usage string
AccessLevel AccessLevelType
Handler BotCommandHandler
Enabled bool
}
func cmdCustom(bot *Bot, cmd BotCustomCommand, message irc.PrivateMessage) {
// Add future logic (like counters etc) here, for now it's just fixed messages
bot.Client.Say(message.Channel, cmd.Response)
}