Dont cache the social media domain checks. i can probably put this in other places but just here for now works
Some checks failed
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 5s
Build and push / Build-and-Push-Docker (push) Failing after 18s
Build and push / sync-argocd-app (push) Has been skipped
Build and push / post-status-to-discord (push) Has been skipped

This commit is contained in:
Luke R 2024-11-26 15:39:46 -08:00
parent fcc07bd47e
commit 3f630f18fe

View File

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