Remove self-bot support (#2008)

This commit is contained in:
Michael H
2018-08-24 08:51:03 -04:00
committed by Toby Harradine
parent bc39a6741c
commit 6ebfdef025
6 changed files with 11 additions and 73 deletions

View File

@@ -94,10 +94,7 @@ def init_events(bot, cli_flags):
data = await bot.application_info()
invite_url = discord.utils.oauth_url(data.id)
except:
if bot.user.bot:
invite_url = "Could not fetch invite url"
else:
invite_url = None
invite_url = "Could not fetch invite url"
prefixes = cli_flags.prefix or (await bot.db.prefix())
lang = await bot.db.locale()