dragon bot wont replace urls on images

This commit is contained in:
Luke Robles 2022-04-14 13:13:16 -07:00
parent 5a3cd7c5af
commit 8317e36da3
2 changed files with 4 additions and 1 deletions

View File

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

View File

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