From f720041d5eeb4102b4fe983f1b61a6bf10d19bf3 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 2 May 2022 13:01:50 -0700 Subject: [PATCH] only replace links in video files --- app/bot.py | 4 +--- helm/values.yaml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/bot.py b/app/bot.py index dc31bffb..600468ef 100755 --- a/app/bot.py +++ b/app/bot.py @@ -39,9 +39,7 @@ async def on_ready(): @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: + if ctx.content.endswith(("mp4", "mov")) and "media.discordapp.net" in ctx.content: await ctx.delete() await ctx.channel.send( "%s said:\n%s" diff --git a/helm/values.yaml b/helm/values.yaml index c6c21a65..0d27048f 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "163" + tag: "164" repository: ldooks/dragon-bot pullPolicy: IfNotPresent