🐛
This commit is contained in:
@@ -225,8 +225,11 @@ def fiarReactionTest(channel,message,user):
|
|||||||
return False, 0
|
return False, 0
|
||||||
|
|
||||||
def monopolyReactionTest(channel,message):
|
def monopolyReactionTest(channel,message):
|
||||||
|
try:
|
||||||
with open("resources/games/oldImages/monopoly"+str(channel.id), "r") as f:
|
with open("resources/games/oldImages/monopoly"+str(channel.id), "r") as f:
|
||||||
oldImage = int(f.read())
|
oldImage = int(f.read())
|
||||||
|
except:
|
||||||
|
return False
|
||||||
|
|
||||||
if message.id == oldImage:
|
if message.id == oldImage:
|
||||||
logThis("They reacted to the monopoly game")
|
logThis("They reacted to the monopoly game")
|
||||||
@@ -235,9 +238,11 @@ def monopolyReactionTest(channel,message):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def hangmanReactionTest(channel,message):
|
def hangmanReactionTest(channel,message):
|
||||||
|
try:
|
||||||
with open("resources/games/oldImages/hangman"+str(channel.id), "r") as f:
|
with open("resources/games/oldImages/hangman"+str(channel.id), "r") as f:
|
||||||
oldMessages = f.read().splitlines()
|
oldMessages = f.read().splitlines()
|
||||||
|
except:
|
||||||
|
return False
|
||||||
gameMessage = False
|
gameMessage = False
|
||||||
|
|
||||||
for oldMessage in oldMessages:
|
for oldMessage in oldMessages:
|
||||||
|
|||||||
Reference in New Issue
Block a user