📽️ 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

@ -122,10 +122,15 @@ class MiscCog(commands.Cog):
await ctx.send(content)
#Searches for movie and adds it to Bedre Netflix
@commands.command(aliases = ["rm","addmovie"])
@commands.command(aliases = ["rm","addmovie","am"])
async def requestmovie(self, ctx, *, content):
await self.bedreNetflix.requestMovie(ctx,content)
#Searches for show and adds it to Bedre Netflix
@commands.command(aliases = ["rs","addshow","as"])
async def requestshow(self, ctx, *, content):
await self.bedreNetflix.requestShow(ctx,content)
#Looks up on Wolfram Alpha
@commands.command()
async def wolf(self, ctx, *, content):

View File

@ -18,12 +18,12 @@ class ReactionCog(commands.Cog):
except:
fourInARowTheirTurn = False
addMovieMessage, imdbIds = self.client.funcs.addMovieReactionTest(channel,message)
bedreNetflixMessage, addMovie, imdbIds = self.client.funcs.bedreNetflixReactionTest(channel,message)
if fourInARowTheirTurn:
place = emojiToCommand(reaction.emoji)
await self.client.gameLoops.fiar(channel," place "+str(piece)+" "+str(place),user.id)
elif addMovieMessage:
elif bedreNetflixMessage and addMovie:
moviePick = emojiToCommand(reaction.emoji)
await message.delete()
if moviePick == "none":
@ -31,6 +31,14 @@ class ReactionCog(commands.Cog):
else:
imdbID = imdbIds[moviePick-1]
await self.client.bedreNetflix.addMovie(channel,imdbID)
elif bedreNetflixMessage and not addMovie:
showPick = emojiToCommand(reaction.emoji)
await message.delete()
if showPick == "none":
imdbName = None
else:
imdbName = imdbIds[showPick-1]
await self.client.bedreNetflix.addShow(channel,imdbName)
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):