only replace links in video files
This commit is contained in:
parent
903f541ff3
commit
f720041d5e
@ -39,9 +39,7 @@ async def on_ready():
|
|||||||
@bot.listen("on_message")
|
@bot.listen("on_message")
|
||||||
async def fix_cdn_url(ctx):
|
async def fix_cdn_url(ctx):
|
||||||
# Ignore images
|
# Ignore images
|
||||||
if ctx.content.endswith(("jpg", "png", "jpeg", "gif")):
|
if ctx.content.endswith(("mp4", "mov")) and "media.discordapp.net" in ctx.content:
|
||||||
return
|
|
||||||
if "media.discordapp.net" in ctx.content:
|
|
||||||
await ctx.delete()
|
await ctx.delete()
|
||||||
await ctx.channel.send(
|
await ctx.channel.send(
|
||||||
"%s said:\n%s"
|
"%s said:\n%s"
|
||||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "163"
|
tag: "164"
|
||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user