a guest Jan 23rd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @bot.command(command=['rbnspots'])
  2. async def rbn(ctx, *, msg : str = ''):
  3.     '''RBN Graphs, thanks to Fabian Kurz, DJ1YFK '''
  4.     with ctx.typing():
  5.         async with aiohttp.ClientSession() as session:
  6.             async with session.get('{call}.png') as resp:
  7.                 if resp.status != 200:
  8.                     return await ctx.send('Could not download file...')
  9.                 data = io.BytesIO(await
  10.     await ctx.send(file=discord.File(data, 'rbn.png'))
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