diff --git a/app/bot.py b/app/bot.py index 44531e0a..9333c1b7 100755 --- a/app/bot.py +++ b/app/bot.py @@ -47,6 +47,13 @@ async def on_ready(): await bot.get_channel(152921472304676865).send("I have reconnected") +@bot.listen('on_message') +async def on_message(ctx): + if 'media.discordapp.net' in ctx.content: + await ctx.delete() + await ctx.channel.send(ctx.content.replace('media.discordapp.net', 'cdn.discordapp.com')) + return + @bot.command(name='shoo') async def shoo(ctx): if ctx.message.author.id != 144986109804412928: