2021-05-14 11:15:38 +00:00
|
|
|
package twitch
|
|
|
|
|
|
|
|
const ConfigKey = "twitch/config"
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
EnableBot bool `json:"enable_bot"`
|
|
|
|
APIClientID string `json:"api_client_id"`
|
|
|
|
APIClientSecret string `json:"api_client_secret"`
|
|
|
|
}
|
|
|
|
|
|
|
|
const BotConfigKey = "twitch/bot-config"
|
|
|
|
|
|
|
|
type BotConfig struct {
|
2021-09-15 15:46:57 +00:00
|
|
|
Username string `json:"username"`
|
|
|
|
Token string `json:"oauth"`
|
|
|
|
Channel string `json:"channel"`
|
|
|
|
EnableChatKeys bool `json:"chat_keys"`
|
|
|
|
ChatHistory int `json:"chat_history"`
|
2021-05-14 11:15:38 +00:00
|
|
|
}
|
2021-09-15 15:46:57 +00:00
|
|
|
|
|
|
|
const BotChatEventKey = "twitch/ev/chat-message"
|
|
|
|
const BotChatHistoryKey = "twitch/chat-history"
|
|
|
|
|
2021-09-16 13:55:43 +00:00
|
|
|
const BotCustomCommandsKey = "twitch/bot-custom-commands"
|