Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfigValidity ¶
func CheckConfigValidity() error
CheckConfigValidity check bot config validity
func CheckEnvironment ¶
func CheckEnvironment()
CheckEnvironment check existence of sub-directories and files required for the operation of the program and creates them otherwise
func ClearData ¶
func ClearData() error
ClearData remove all IGopher data sub-folder and their content. It will recreate the necessary environment at the end no matter if an error has occurred or not.
func ExportConfig ¶
func ExportConfig(c types.BotConfigYaml)
ExportConfig export BotConfigYaml instance to config.yaml config file
func ImportConfig ¶
func ImportConfig() types.BotConfigYaml
ImportConfig read config.yaml, parse it in BotConfigYaml instance and finally return it
func ResetBotConfig ¶
func ResetBotConfig() types.BotConfigYaml
ResetBotConfig return default bot configuration instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.