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

@@ -158,14 +158,9 @@ def main():
if tmp_data["enable_sentry"]:
red.enable_sentry()
try:
loop.run_until_complete(red.start(token, bot=not cli_flags.not_bot))
loop.run_until_complete(red.start(token, bot=True))
except discord.LoginFailure:
log.critical(
"This token doesn't seem to be valid. If it belongs to "
"a user account, remember that the --not-bot flag "
"must be used. For self-bot functionalities instead, "
"--self-bot"
)
log.critical("This token doesn't seem to be valid.")
db_token = loop.run_until_complete(red.db.token())
if db_token and not cli_flags.no_prompt:
print("\nDo you want to reset the token? (y/n)")