fighting discord cache
This commit is contained in:
parent
54986c9ff0
commit
0ea6e64b44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user