From 37f52d8d58cfa8c4e0f233df5705f3bc69311c75 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 8 May 2022 18:37:51 -0700 Subject: [PATCH] Add fix for files.luker.gq --- app/bot.py | 17 +++++++++++++++++ helm/values.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) mode change 100644 => 100755 app/bot.py diff --git a/app/bot.py b/app/bot.py old mode 100644 new mode 100755 index 2e1e8332..d27477cb --- a/app/bot.py +++ b/app/bot.py @@ -48,6 +48,23 @@ async def fix_cdn_url(ctx): return +@bot.listen("on_message") +async def luker_files_fix(ctx): + # Ignore images + if "https://files.luker.gq/" in ctx.content and not "selif" in ctx.content: + identifier = ctx.content.split("gq/")[-1] + fixed_url = "https://files.luker.gq/selif/%s" % identifier + await ctx.delete() + await ctx.channel.send( + "%s said:\n%s" + % ( + ctx.author.mention, + fixed_url, + ) + ) + return + + @bot.listen("on_message") async def based(ctx): if ctx.content.lower() == "based": diff --git a/helm/values.yaml b/helm/values.yaml index 963e809c..0a968857 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: "178" + tag: "179" repository: ldooks/dragon-bot pullPolicy: IfNotPresent