📝 Names
This commit is contained in:
@ -58,7 +58,7 @@ async def parseCommands(message,content):
|
|||||||
# Stops the bot
|
# Stops the bot
|
||||||
elif content.startswith("stop"):
|
elif content.startswith("stop"):
|
||||||
try:
|
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...")
|
await message.channel.send("Logging out...")
|
||||||
|
|
||||||
stopServer()
|
stopServer()
|
||||||
|
@ -4,7 +4,7 @@ import copy
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
from . import hexDraw
|
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
|
# 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
|
# in case she has the first move
|
||||||
gwendoTurn = True
|
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:
|
else:
|
||||||
return "There's already a hex game going on in this channel", False, False, False, False
|
return "There's already a hex game going on in this channel", False, False, False, False
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user