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