mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
Name check at start and updated README
This commit is contained in:
3
red.py
3
red.py
@@ -249,6 +249,9 @@ async def on_message(message):
|
||||
async def on_ready():
|
||||
logger.info(settings["NAME"] + " is online. (" + client.user.id + ")")
|
||||
await gameSwitcher.changeGame(now=True)
|
||||
if client.user.name != settings["NAME"]:
|
||||
name = "." + settings["NAME"] + "()"
|
||||
await client.edit_profile(settings["PASSWORD"], username=name)
|
||||
# cns = threading.Thread(target=console, args=[])
|
||||
# cns.start() # console, WIP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user