From 7240b279fa4dafe7edffa705c223a3fc202d56c7 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:13:16 -0700 Subject: [PATCH] dragon bot wont replace urls on images --- app/bot.py | 3 +++ helm/values.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/bot.py b/app/bot.py index 560bef65..ba76c96e 100755 --- a/app/bot.py +++ b/app/bot.py @@ -48,6 +48,9 @@ def generate_embed( #### a bunch of silly functions that will listen for messages with specific content @bot.listen("on_message") async def fix_cdn_url(ctx): + # Ignore images + if ctx.content.endswith(("jpg", "png", "jpeg", "gif")): + return if "media.discordapp.net" in ctx.content: await ctx.delete() await ctx.channel.send( diff --git a/helm/values.yaml b/helm/values.yaml index 99b33e86..0773d450 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -8,7 +8,7 @@ image: repository: ldooks/dragon-bot pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "143" + tag: "144" imagePullSecrets: [] nameOverride: ""