Name check at start and updated README

This commit is contained in:
Twentysix 2016-01-02 16:39:09 +01:00
parent 71eade46f8
commit 01a69d2ebc
2 changed files with 4 additions and 1 deletions

View File

@ -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? ### I don't even know what I'm looking at. How do I install this?
Do not panic. Follow these steps: Do not panic. Follow these steps:
- Download the bot and unpack it. - 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" - [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: - Open the start menu, type cmd, right click and open the command prompt as admin. Now, do:
``` ```

3
red.py
View File

@ -249,6 +249,9 @@ async def on_message(message):
async def on_ready(): async def on_ready():
logger.info(settings["NAME"] + " is online. (" + client.user.id + ")") logger.info(settings["NAME"] + " is online. (" + client.user.id + ")")
await gameSwitcher.changeGame(now=True) 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 = threading.Thread(target=console, args=[])
# cns.start() # console, WIP # cns.start() # console, WIP