📽️ Added the !addshow command
This commit is contained in:
@ -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):
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user