diff --git a/auroraBot.py b/auroraBot.py index e1a65ae..81091c4 100644 --- a/auroraBot.py +++ b/auroraBot.py @@ -4,6 +4,7 @@ import discord from discord.ext import commands import config +import random TOKEN = config.token ID = config.channel_id @@ -14,7 +15,8 @@ bot = commands.Bot(command_prefix='!', intents=intents) @bot.command(name='sky', help='Shows the latest image from the All Sky Camera in Kiruna') async def ASC(ctx): - message = 'https://www.irf.se/alis/allsky/krn/latest.jpeg' + num = random.randint(1,100000) + message = f'https://www.irf.se/alis/allsky/krn/latest.jpeg?{num}' if ctx.channel.id != ID: await ctx.send(f"Please keep this stuff in <#{ID}>") return