📝 Names

This commit is contained in:
jona605a
2020-08-04 20:56:55 +02:00
parent 28a5e55ab2
commit 591e6314e4
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ async def parseCommands(message,content):
# Stops the bot
elif content.startswith("stop"):
try:
if "#"+str(message.author.id) == "#266269899859427329" or "#"+str(message.author.id) == "#380732645602230272":
if "#"+str(message.author.id) in ["#266269899859427329", "#380732645602230272"]:
await message.channel.send("Logging out...")
stopServer()

View File

@ -4,7 +4,7 @@ import copy
import math
from . import hexDraw
from funcs import logThis
from funcs import logThis, getName, getID
# This is totally copied from the four in a row game. Just modified
@ -97,7 +97,7 @@ def hexStart(channel, user, opponent):
# in case she has the first move
gwendoTurn = True
return "Started hex game against "+opponent+". It's "+players[0]+"'s turn", True, False, False, gwendoTurn
return "Started game against "+getName(opponent)+diffText+". It's "+getName(players[0])+"'s turn", True, False, False, gwendoTurn
else:
return "There's already a hex game going on in this channel", False, False, False, False
else: