only replace links in video files
This commit is contained in:
parent
d04c409303
commit
6de1b6db12
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user