From 3f630f18fed5bb87476b75e1e1347f98ec33a315 Mon Sep 17 00:00:00 2001 From: Luke R Date: Tue, 26 Nov 2024 15:39:46 -0800 Subject: [PATCH] Dont cache the social media domain checks. i can probably put this in other places but just here for now works --- app/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bot.py b/app/bot.py index d0a46d13..445d4c13 100755 --- a/app/bot.py +++ b/app/bot.py @@ -3,7 +3,6 @@ from discord.ext import commands import core_utils import discord import os -import random import requests import requests_cache @@ -93,8 +92,9 @@ async def convert_heic_to_jpg(ctx): @bot.listen("on_message") async def fix_social_media_links(ctx): + headers = {"Cache-Control": "no-store"} correct_domains = requests.get( - core_utils.json_endpoint + "social_media_domains.json" + core_utils.json_endpoint + "social_media_domains.json", headers=headers ).json() if ctx.author.id == bot.user.id: