fighting discord cache

This commit is contained in:
Xaloc 2023-03-20 20:27:40 +01:00
parent 54986c9ff0
commit 0ea6e64b44

View File

@ -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