Strip ?s from twitter links
This commit is contained in:
parent
3d87ec7fa3
commit
bb165a61b6
@ -129,7 +129,9 @@ async def fix_social_media_links(ctx):
|
|||||||
"%s said:\n%s"
|
"%s said:\n%s"
|
||||||
% (
|
% (
|
||||||
ctx.author.mention,
|
ctx.author.mention,
|
||||||
ctx.content.replace(k, "https://%s.com" % correct_domains[k]),
|
ctx.content.replace(k, "https://%s.com" % correct_domains[k]).split(
|
||||||
|
"?s"
|
||||||
|
)[0],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
await ctx.delete()
|
await ctx.delete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user