dragon bot wont replace urls on images
This commit is contained in:
parent
5a3cd7c5af
commit
8317e36da3
@ -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(
|
||||
|
@ -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: ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user