Преглед на файлове

import error handling

tags/v2.0.0
Roxie Gibson преди 5 години
родител
ревизия
2269ac8f8d
променени са 2 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. +2
    -1
      CHANGELOG.md
  2. +5
    -2
      main.py

+ 2
- 1
CHANGELOG.md Целия файл

@@ -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 Целия файл

@@ -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…
Отказ
Запис