Skip to content
Snippets Groups Projects
Commit c2cc9148 authored by Reviath's avatar Reviath
Browse files

Update config struct.

parent 75016691
Branches
Tags
No related merge requests found
......@@ -23,18 +23,18 @@ var (
)
type configStruct struct {
Token string `json:"Token"`
BotPrefix string `json:"BotPrefix"`
Presence string `json:"Presence"`
Owner string `json:"Owner"`
LoadInteractions string `json:"LoadInteractions"`
Database string `json:"Database"`
Host string `json:"Host"`
User string `json:"User"`
Password string `json:"Password"`
WebURL string `json:"WebURL"`
ClientID string `json:"ClientID"`
ClientSecret string `json:"ClientSecret"`
Token string `json:"Token"` // Token from config file
BotPrefix string `json:"BotPrefix"` // BotPrefix from config file
Presence string `json:"Presence"` // Presence from config file
Owner string `json:"Owner"` // Owner from config file
LoadInteractions string `json:"LoadInteractions"` // LoadInteractions from config file
Database string `json:"Database"` // Database from config file
Host string `json:"Host"` // Host from config file
User string `json:"User"` // User from config file
Password string `json:"Password"` // Password from config file
WebURL string `json:"WebURL"` // WebURL from config file
ClientID string `json:"ClientID"` // ClientID from config file
ClientSecret string `json:"ClientSecret"` // ClientSecret from config file
}
// ReadConfig reads config.json file, returns error
......
......@@ -82,9 +82,9 @@ type Context struct {
}
const (
CommandTypeEverywhere CommandType = iota
CommandTypeEverywhere CommandType = iota // CommandTypeEverywhere : command can be used on everywhere (DMs + Guilds)
CommandTypeGuild
CommandTypeGuild // CommandTypeGuild : command can be only used on guilds (not DMs)
CommandTypePrivate
CommandTypePrivate // CommandTypePrivate : private command type
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment