parent
e43a631950
commit
6140d67250
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ func LoadConfig() *Config {
|
|||
|
||||
configPath := u + "/.config/discordo/config.json"
|
||||
if _, err = os.Stat(configPath); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(u+"/.config/discordo", 0700)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err := os.Create(configPath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue