mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Prompts for updates (#160)
This commit is contained in:
parent
9d32c5db5c
commit
1e0c015400
11
red.py
11
red.py
@ -524,9 +524,20 @@ def main():
|
|||||||
print("Owner has not been set yet. Do '{}set owner' in chat to set yourself as owner.".format(bot.command_prefix[0]))
|
print("Owner has not been set yet. Do '{}set owner' in chat to set yourself as owner.".format(bot.command_prefix[0]))
|
||||||
else:
|
else:
|
||||||
owner.hidden = True # Hides the set owner command from help
|
owner.hidden = True # Hides the set owner command from help
|
||||||
|
print("-- Logging in.. --")
|
||||||
|
print("Make sure to keep your bot updated by using: git pull")
|
||||||
|
print("and: pip3 install --upgrade git+https://github.com/Rapptz/discord.py@async")
|
||||||
if settings.login_type == "token":
|
if settings.login_type == "token":
|
||||||
_token.hidden = True
|
_token.hidden = True
|
||||||
|
try:
|
||||||
yield from bot.login(settings.email)
|
yield from bot.login(settings.email)
|
||||||
|
except TypeError as e:
|
||||||
|
print(e)
|
||||||
|
msg = "\n"
|
||||||
|
msg += "You are using an outdated discord.py.\n"
|
||||||
|
msg += "update your discord.py with by running this in your cmd prompt/terminal.\n"
|
||||||
|
msg += "pip3 install --upgrade git+https://github.com/Rapptz/discord.py@async"
|
||||||
|
sys.exit(msg)
|
||||||
else:
|
else:
|
||||||
yield from bot.login(settings.email, settings.password)
|
yield from bot.login(settings.email, settings.password)
|
||||||
yield from bot.connect()
|
yield from bot.connect()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user