From 01a69d2ebc85d5830d4f226c6edb62eda94d895f Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sat, 2 Jan 2016 16:39:09 +0100 Subject: [PATCH] Name check at start and updated README --- README.md | 2 +- red.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f71d8559..3fa035123 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ See the [command list](#general-commands) for an even better idea of what this b ### I don't even know what I'm looking at. How do I install this? Do not panic. Follow these steps: - Download the bot and unpack it. -- [Install Python](https://www.python.org/downloads/). This bot needs 3.5.1 or superior. +- [Install Python](https://www.python.org/downloads/). This bot needs 3.5.1 32bit or superior. - [Install Git](https://git-scm.com/download/win), don't forget to check "Use Git from the Windows Command Prompt" - Open the start menu, type cmd, right click and open the command prompt as admin. Now, do: ``` diff --git a/red.py b/red.py index df914bb3e..1ead8dd17 100644 --- a/red.py +++ b/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