2021-05-14 11:15:38 +00:00
|
|
|
package twitch
|
|
|
|
|
|
|
|
const ConfigKey = "twitch/config"
|
|
|
|
|
|
|
|
type Config struct {
|
2021-12-09 10:45:10 +00:00
|
|
|
Enabled bool `json:"enabled"`
|
2021-05-14 11:15:38 +00:00
|
|
|
EnableBot bool `json:"enable_bot"`
|
|
|
|
APIClientID string `json:"api_client_id"`
|
|
|
|
APIClientSecret string `json:"api_client_secret"`
|
|
|
|
}
|
|
|
|
|
2022-01-22 12:05:24 +00:00
|
|
|
const StreamInfoKey = "twitch/stream-info"
|
|
|
|
|
2021-05-14 11:15:38 +00:00
|
|
|
const BotConfigKey = "twitch/bot-config"
|
|
|
|
|
|
|
|
type BotConfig struct {
|
2022-01-21 09:08:51 +00:00
|
|
|
Username string `json:"username"`
|
|
|
|
Token string `json:"oauth"`
|
|
|
|
Channel string `json:"channel"`
|
|
|
|
ChatHistory int `json:"chat_history"`
|
2021-05-14 11:15:38 +00:00
|
|
|
}
|
2021-09-15 15:46:57 +00:00
|
|
|
|
2022-11-23 15:34:49 +00:00
|
|
|
const (
|
|
|
|
ChatEventKey = "twitch/ev/chat-message"
|
|
|
|
ChatHistoryKey = "twitch/chat-history"
|
|
|
|
ChatActivityKey = "twitch/chat-activity"
|
|
|
|
)
|
2021-09-15 15:46:57 +00:00
|
|
|
|
2021-09-16 15:11:49 +00:00
|
|
|
type BotCustomCommand struct {
|
|
|
|
Description string `json:"description"`
|
|
|
|
AccessLevel AccessLevelType `json:"access_level"`
|
|
|
|
Response string `json:"response"`
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
}
|
|
|
|
|
|
|
|
const CustomCommandsKey = "twitch/bot-custom-commands"
|
|
|
|
|
|
|
|
const WriteMessageRPC = "twitch/@send-chat-message"
|
2021-09-18 20:06:22 +00:00
|
|
|
|
|
|
|
const BotCounterPrefix = "twitch/bot-counters/"
|
2022-11-23 21:22:49 +00:00
|
|
|
|
|
|
|
const AuthKey = "twitch/auth-keys"
|
|
|
|
|
|
|
|
const (
|
|
|
|
EventSubEventKey = "twitch/ev/eventsub-event"
|
|
|
|
EventSubHistoryKey = "twitch/eventsub-history"
|
|
|
|
)
|
|
|
|
|
|
|
|
const EventSubHistorySize = 50
|