only replace links in video files

This commit is contained in:
Luke Robles 2022-05-02 13:01:50 -07:00
parent 903f541ff3
commit f720041d5e
2 changed files with 2 additions and 4 deletions

View File

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

View File

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