Add fix for files.luker.gq

This commit is contained in:
Luke Robles 2022-05-08 18:37:51 -07:00
parent c51d891ba1
commit a621538fb6
2 changed files with 18 additions and 1 deletions

17
app/bot.py Normal file → Executable file
View File

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

View File

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