📽️ Added the !addshow command

This commit is contained in:
NikolajDanger
2021-01-31 20:50:49 +01:00
parent 86cc52ca0d
commit bf64fa3fec
7 changed files with 105 additions and 10 deletions

View File

@ -83,13 +83,16 @@ class Funcs():
return gameMessage
def addMovieReactionTest(self,channel,message):
def bedreNetflixReactionTest(self,channel,message):
try:
with open("resources/bedreNetflix/oldMessage"+str(channel.id),"r") as f:
data = json.load(f)
except:
return False, None
if data["messageID"] == message.id:
return True, data["imdbIds"]
if "imdbIds" in data:
return True, True, data["imdbIds"]
else:
return True, False, data["imdbNames"]
else:
return False, None