Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Dec 22, 2021
1 parent 37ef9a5 commit ad618a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ LOOPS:

# If ENABLED: True, the bot will post a message before the daily reset tagging the scholars if did not yet did all the quests
SLP_WARNING:
ENABELD: True
ENABLED: True
CHANNEL: ❌┃warnings

##################
Expand All @@ -103,7 +103,8 @@ COMMANDS:
ENABLED: True

# Copy here your fernet key that you get after executing `python src/setup.py`
KEY: Your Fernet Key
# Or leave the old one here, but I would not suggest that for safety reasons
KEY: VS8rLHVcDZEantARsKDrFKeg6BfJghNp0R8YyDSnbCw=

# !funds <ronin address>: Adds your funds address to the spreadsheet
FUNDS: True
Expand Down
Binary file added img/setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def load_folder(config, foldername):
enabled_commands = ["help.py"]
for file in config[foldername.upper()]:
if config[foldername.upper()][file]:
enabled_commands.append(file.lower() + ".py")
if not type(config[foldername.upper()][file]) == bool:
if config[foldername.upper()][file]["ENABLED"]:
enabled_commands.append(file.lower() + ".py")
else:
enabled_commands.append(file.lower() + ".py")

# Load all commands
print(f"Loading {foldername} ...")
Expand Down

0 comments on commit ad618a8

Please sign in to comment.