add solar wind command

This commit is contained in:
Xaloc 2023-03-20 23:07:37 +01:00
parent a1b6e94e20
commit 84d0447376

View File

@ -39,4 +39,16 @@ async def kp(ctx):
await ctx.send(message) await ctx.send(message)
return return
@bot.command(name='solarWind', help='Shows graph with solar wind and magnetic field info')
async def ASC(ctx):
num = random.randint(1,100000)
message = f'https://www.spaceweather.se/content/irf-kp.png?{num}'
if ctx.channel.id != ID:
await ctx.send(f"Please keep this stuff in <#{ID}>")
return
else:
await ctx.send(message)
return
bot.run(TOKEN) bot.run(TOKEN)