replace twitter.com with fxtwitter.com
This commit is contained in:
parent
beb2bc2715
commit
2f97a93c56
14
app/bot.py
14
app/bot.py
@ -50,6 +50,20 @@ async def fix_cdn_url(ctx):
|
|||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@bot.listen("on_message")
|
||||||
|
async def fix_twitter_url(ctx):
|
||||||
|
if "https://twitter.com" in ctx.content:
|
||||||
|
await ctx.delete()
|
||||||
|
await ctx.channel.send(
|
||||||
|
"%s said:\n\n%s"
|
||||||
|
% (
|
||||||
|
ctx.author.mention,
|
||||||
|
ctx.content.replace("twitter.com", "fxtwitter.com"),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
@bot.listen("on_message")
|
@bot.listen("on_message")
|
||||||
async def convert_heic_to_jpg(ctx):
|
async def convert_heic_to_jpg(ctx):
|
||||||
from cmagick import cmagick
|
from cmagick import cmagick
|
||||||
|
Loading…
x
Reference in New Issue
Block a user