Browse Source

import error handling

tags/v2.0.0
Roxie Gibson 5 years ago
parent
commit
2269ac8f8d
2 changed files with 7 additions and 3 deletions
  1. +2
    -1
      CHANGELOG.md
  2. +5
    -2
      main.py

+ 2
- 1
CHANGELOG.md View File



### Regular Updates ### Regular Updates
#### New Features #### New Features
*fuck i moved all my new stuff to 1.8*
- roxbot will remove all redundant settings (removed roles from self assign, etc.)
- cogs have a message if they fail to load. this is better than the entire program breaking.
#### Bug Fixes #### Bug Fixes
- deepfry command now works all the time - deepfry command now works all the time
- pride filter filenames fixed - pride filter filenames fixed

+ 5
- 2
main.py View File

# Load Extension Cogs # Load Extension Cogs
print("Cogs Loaded:") print("Cogs Loaded:")
for cog in cogs: for cog in cogs:
bot.load_extension(cog)
print(cog.split(".")[2])
try:
bot.load_extension(cog)
print(cog.split(".")[2])
except ImportError:
print("{} FAILED TO LOAD. MISSING REQUIREMENTS".format(cog.split(".")[2]))
print("") print("")


print("Servers I am currently in:") print("Servers I am currently in:")

Loading…
Cancel
Save