mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-20 02:00:49 +00:00
25 lines
645 B
Go
25 lines
645 B
Go
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 {
|
|
Username string `json:"username"`
|
|
Token string `json:"oauth"`
|
|
Channel string `json:"channel"`
|
|
EnableChatKeys bool `json:"chat_keys"`
|
|
ChatHistory int `json:"chat_history"`
|
|
}
|
|
|
|
const BotChatEventKey = "twitch/ev/chat-message"
|
|
const BotChatHistoryKey = "twitch/chat-history"
|
|
|
|
const BotCustomCommands = "twitch/bot-custom-commands"
|