Documentation ¶
Index ¶
Constants ¶
View Source
const (
BaseAuthURLTemplate string = "https://discord.com/api/oauth2/authorize?client_id=%s&scope=bot"
)
Variables ¶
View Source
var (
ConcertinaClientID, _ = configparser.Register("concertina.clientid", "ClientID of test bot", nil)
ConcertinaClientSecrets, _ = configparser.Register("concertina.clientsecret", "ClientSecret of test bot", nil)
ConcertinaBotToken, _ = configparser.Register("concertina.authtoken", "authentication token of test bot", nil)
IridaceaeClientID, _ = configparser.Register("iris.clientid", "IridaceaeClientID of the bot", nil)
IridaceaeClientSecrets, _ = configparser.Register("iris.clientsecret", "ClientSecret of the bot", nil)
IridaceaeBotToken, _ = configparser.Register("iris.authtoken", "authentication token of the bot", nil)
CmdPrefix, _ = configparser.Register("iris.cmdprefix", "prefix for iris", "-ir ")
Loaded = false
CI = true
)
Functions ¶
func GetBotToken ¶
func GetBotToken(token *configparser.Options) string
GetBotToken will handles authToken.
func LoadConfig ¶
func LoadConfig(clientid, clientsecret, token *configparser.Options) error
LoadConfig will load given clientid, secrets, and token for setting bot.
func LoadGlobalEnv ¶
func LoadGlobalEnv() error
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package acceptmsg provides a message models for discordgo which can be either accepted or declined via reactions.
|
Package acceptmsg provides a message models for discordgo which can be either accepted or declined via reactions. |
Package configparser defines some default configs handler including a configparser parser with ability to update value dynamically
|
Package configparser defines some default configs handler including a configparser parser with ability to update value dynamically |
Package deprecatedrunner contains v1 bot functionality, deprecated in next update.
|
Package deprecatedrunner contains v1 bot functionality, deprecated in next update. |
Package helpers contains helpers functions that can be use globally.
|
Package helpers contains helpers functions that can be use globally. |
Package log provides a structured context logger.
|
Package log provides a structured context logger. |
Package pomodoro provides functionality for pomodoro techniques.
|
Package pomodoro provides functionality for pomodoro techniques. |
Package rosetta is iridaceae internal command parser.
|
Package rosetta is iridaceae internal command parser. |
ratelimit
Package ratelimit provides a basic token-bucket limiter for rosetta router.
|
Package ratelimit provides a basic token-bucket limiter for rosetta router. |
Click to show internal directories.
Click to hide internal directories.