Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.command(command=['rbnspots'])
- async def rbn(ctx, *, msg : str = ''):
- '''RBN Graphs, thanks to Fabian Kurz, DJ1YFK '''
- with ctx.typing():
- async with aiohttp.ClientSession() as session:
- async with session.get('https://foc.dj1yfk.de/activity/image/{call}.png') as resp:
- if resp.status != 200:
- return await ctx.send('Could not download file...')
- data = io.BytesIO(await resp.read())
- await ctx.send(file=discord.File(data, 'rbn.png'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement