瀏覽代碼

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…
取消
儲存