From 0ea6e64b4421487bec8585140fc895c3de248412 Mon Sep 17 00:00:00 2001 From: Xaloc Date: Mon, 20 Mar 2023 20:27:40 +0100 Subject: [PATCH] fighting discord cache --- auroraBot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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