Strip ?s from twitter links

This commit is contained in:
Luke Robles 2024-01-16 08:35:48 -08:00
parent 3d87ec7fa3
commit bb165a61b6

View File

@ -129,7 +129,9 @@ async def fix_social_media_links(ctx):
"%s said:\n%s"
% (
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()