Advertisement
Guest User

thotrate

a guest
Feb 27th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. import discord
  2. from discord.ext import commands
  3. import traceback
  4. import datetime
  5. import asyncio
  6. import random
  7. from datetime import datetime
  8. from cv import *
  9.  
  10. @bot.command()
  11. async def thotrate(ctx, user: discord.Member):
  12. await ctx.send(f"**{user.name}** is **__{int(random.randint(0, 100)}__**% a thot!")
  13.  
  14. @cuterate.error
  15. async def thotrate_error(ctx, error):
  16. if isinstance(error, commands.MissingRequiredArgument):
  17. await ctx.send(f"**{ctx.message.author.name}** is **__{int(random.randint(0, 100)}__**% a thot!")
  18. elif isinstance(error, commands.BadArgument):
  19. embed = discord.Embed(color=0xFFFFFF)
  20. embed.set_footer(text="Member not found.")
  21. await ctx.send(f"**babi** is **__not__** a thot, duh. She's loyal to ~~Meg~~ Shiki. 😳", embed=embed)
  22. else:
  23. print('Ignoring exception in command av:', file=sys.stderr)
  24. traceback.print_exception(type(error), error, error.__traceback__, file=sys.stderr)
  25. embed = discord.Embed(description="{}".format(error), color=0x000000)
  26. await ctx.send("uh, oops, i guess?", embed=embed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement