We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7ea79 commit 41af92bCopy full SHA for 41af92b
utils/config.py
@@ -2,14 +2,14 @@
2
import os
3
4
def create_config():
5
- config = {
6
- "available_webhook": "",
7
- "updates_webhook": "",
8
- "archives_webhook": ""
9
- }
10
- with open("config.yml", 'w') as f:
11
- yaml.dump(config, f)
12
- return config
+ if not os.path.exists("config.yml"):
+ config = {
+ "available_webhook": "",
+ "updates_webhook": "",
+ "archives_webhook": ""
+ }
+ with open("config.yml", 'w') as f:
+ yaml.dump(config, f)
13
14
def get_config():
15
if not os.path.exists("config.yml"):
0 commit comments