Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. async def cmd_quote(ctx, args):
  2.     if ctx.mentions:
  3.         quote = db.get('user', ctx.mentions[0].id)['quote']
  4.     else:
  5.         quote = db.get('user', ctx.author.id)['quote']
  6.     if quote:
  7.         return await ctx.channel.send('```{}```'.format(quote))
  8.     return await ctx.channel.send('```No quote has been set```')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement