소스 검색

changed error checking order to make sense and not duplicate multiple times. Also added a command to avoid errors with the guild_settings file.

tags/v2.0.0
Roxie Gibson 5 년 전
부모
커밋
a92d63b370
1개의 변경된 파일12개의 추가작업 그리고 5개의 파일을 삭제
  1. +12
    -5
      main.py

+ 12
- 5
main.py 파일 보기

@@ -85,11 +85,12 @@ async def on_ready():
print("{} FAILED TO LOAD. MISSING REQUIREMENTS".format(cog.split(".")[2]))
print("")

print("Servers I am currently in:")
for server in bot.guilds:
print(server)
# this is so if we're added to a server while we're offline we deal with it
roxbot.guild_settings.error_check(bot.guilds, bot.cogs)
# this is so if we're added to a server while we're offline we deal with it
roxbot.guild_settings.error_check(bot.guilds, bot.cogs)

print("Guilds I'm currently in:")
for guild in bot.guilds:
print(guild)
print("")


@@ -136,6 +137,12 @@ async def about(ctx):

return await ctx.channel.send(embed=em)

@commands.command(pass_context=False, hidden=True)
async def settings():
# This is to block any customcommand or command from being made with the same name.
# This is to avoid conflicts with the internal settings system.
raise commands.CommandNotFound()

if __name__ == "__main__":
# Pre-Boot checks
if not os.path.isfile("roxbot/settings/preferences.ini"):

Loading…
취소
저장