Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.command()
- async def ship(ctx, person1: discord.User, person2: discord.User):
- if (
- 768393728163053619 not in (person1.id, person2.id)
- and 536479129025904651 not in (person1.id, person2.id)
- and person1.id != person2.id
- ):
- ship_percent = random.randint(0, 101)
- if ship_percent == 0:
- ship_msg = "Yikes..."
- elif ship_percent > 0 and ship_percent <= 25:
- ship_msg = "Doesn't look like this will work out :tired_face:"
- elif ship_percent > 25 and ship_percent <= 50:
- ship_msg = "Not great odds sadly :pensive:"
- elif ship_percent > 50 and ship_percent <= 75:
- ship_msg = "Not too shabby :eyes:"
- elif ship_percent > 75 and ship_percent <= 99:
- ship_msg = "Start going out already..."
- elif ship_percent == 100:
- ship_msg = "WELL DAMN!"
- elif ship_percent == 101:
- ship_msg = "OMG! :heart:"
- embed = discord.Embed(title="Love-O-Meter", description=f"{person1.mention} x {person2.mention}")
- embed.add_field(name=f"{ship_percent}%", value=ship_msg)
- if ship_percent == 0:
- embed.set_image(url="gif goes here")
- elif ship_percent > 0 and ship_percent <= 25:
- embed.set_image(url="gif goes here")
- elif ship_percent > 25 and ship_percent <= 50:
- embed.set_image(url="gif goes here")
- elif ship_percent > 50 and ship_percent <= 75:
- embed.set_image(url="gif goes here")
- elif ship_percent > 75 and ship_percent <= 99:
- embed.set_image(url="gif goes here")
- elif ship_percent == 100:
- embed.set_image(url="gif goes here")
- elif ship_percent == 101:
- embed.set_image(url="gif goes here")
- await ctx.channel.send(embed=embed)
- elif person1.id == person2.id:
- embed_sad = discord.Embed(description="Well this is sad...")
- await ctx.channel.send(embed_sad=embed_sad)
- elif 768393728163053619 in (person1.id, person2.id) and 536479129025904651 in (person1.id, person2.id):
- embed_fake = discord.Embed(title="Love-O-Meter", description=f"{person1.mention} x {person2.mention}")
- embed_fake.add_field(name="101%", value="Made for each other :heart_eyes:")
- embed_fake.set_image(url="https://i.gifer.com/fOG.gif")
- await ctx.channel.send(embed_fake=embed_fake)
- @ship.error
- async def on_ship_error(ctx, error):
- if isinstance(error, commands.MissingRequiredArgument):
- embed = discord.Embed(description="Syntax is `'ship @user1 @user2`")
- await ctx.channel.send(embed=embed)
Advertisement
Add Comment
Please, Sign In to add comment