SHARE
TWEET

cuterate

a guest Feb 27th, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 cuterate(ctx, user: discord.Member):
  12.     await ctx.send(f"**{user.name}** is **__{int(random.randint(0, 100)}__**% cute!")
  13.  
  14. @kiss.error
  15. async def kiss_error(ctx, error):
  16.     if isinstance(error, commands.MissingRequiredArgument):
  17.         await ctx.send(f"**{ctx.message.author.name}** is **__{int(random.randint(0, 100)}__**% cute!")
  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 **__1000__**% cute, duh.", 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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top