Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigJsonPath string = "config.json"
Variables ¶
This section is empty.
Functions ¶
func GetBotToken ¶
func GetBotToken() string
func GetChannelId ¶
func GetChannelId() int
func GetDbCollection ¶
func GetDbCollection() string
func GetFilter_mode ¶
func GetFilter_mode() string
func MessageValid ¶
Types ¶
type ConfigJson ¶
type ConfigJson struct { BOT_TOKEN string `json:"bot_token"` DB_URL string `json:"db_url"` DB_Name string `json:"db_name"` DB_Col string `json:"db_collection"` Channel_id int `json:"channel_id"` Filter_mode string `json:"filter_mode"` Blacklist []string `json:"blacklist_links"` Whitelist []string `json:"whitelist_links"` }
var Config *ConfigJson = InitConfig()
func InitConfig ¶
func InitConfig() *ConfigJson
Click to show internal directories.
Click to hide internal directories.