fix default config saving

This commit is contained in:
Hri7566 2024-02-15 03:53:27 -05:00
parent e447f2a355
commit f8d1af1b0a
2 changed files with 5 additions and 0 deletions

4
config/bots.yml Normal file
View File

@ -0,0 +1,4 @@
- uri: wss://mppclone.com:8443
channel:
id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
allowColorChanging: true

View File

@ -16,6 +16,7 @@ export function loadConfig<T>(path: string, defaultConfig: T) {
return data as T;
} else {
saveConfig(path, defaultConfig);
return defaultConfig;
}
}