Sfoglia il codice sorgente

import error handling

tags/v2.0.0
Roxie Gibson 5 anni fa
parent
commit
2269ac8f8d
2 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. +2
    -1
      CHANGELOG.md
  2. +5
    -2
      main.py

+ 2
- 1
CHANGELOG.md Vedi File

@@ -8,7 +8,8 @@

### Regular Updates
#### 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
- deepfry command now works all the time
- pride filter filenames fixed

+ 5
- 2
main.py Vedi File

@@ -97,8 +97,11 @@ async def on_ready():
# Load Extension Cogs
print("Cogs Loaded:")
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("Servers I am currently in:")

Loading…
Annulla
Salva