🎞️ Added !addmovie command

This commit is contained in:
NikolajDanger
2021-01-31 18:31:23 +01:00
parent 10fb0f7f6e
commit 4cfd5af9da
12 changed files with 117 additions and 5 deletions

View File

@ -11,6 +11,7 @@ class MiscCog(commands.Cog):
self.client = client
self.client.remove_command("help")
self.generator = client.generator
self.bedreNetflix = client.bedreNetflix
@commands.command(name = "help")
async def helpCommand(self, ctx, *, content = ""):
@ -120,6 +121,11 @@ class MiscCog(commands.Cog):
else:
await ctx.send(content)
#Searches for movie and adds it to Bedre Netflix
@commands.command(aliases = ["rm","addmovie"])
async def requestmovie(self, ctx, *, content):
await self.bedreNetflix.requestMovie(ctx,content)
#Looks up on Wolfram Alpha
@commands.command()
async def wolf(self, ctx, *, content):

View File

@ -18,9 +18,19 @@ class ReactionCog(commands.Cog):
except:
fourInARowTheirTurn = False
addMovieMessage, imdbIds = self.client.funcs.addMovieReactionTest(channel,message)
if fourInARowTheirTurn:
place = emojiToCommand(reaction.emoji)
await self.client.gameLoops.fiar(channel," place "+str(piece)+" "+str(place),user.id)
elif addMovieMessage:
moviePick = emojiToCommand(reaction.emoji)
message.delete()
if moviePick == "none":
imdbID = None
else:
imdbID = imdbIds[moviePick-1]
await self.client.bedreNetflix.addMovie(channel,imdbID)
elif self.client.funcs.monopolyReactionTest(channel,message):
await self.client.gameLoops.runMonopoly(channel,"roll","#"+str(user.id))
elif self.client.funcs.hangmanReactionTest(channel,message) and ord(reaction.emoji) in range(127462,127488):