Strip ?s from twitter links

This commit is contained in:
Luke Robles 2024-01-16 08:35:48 -08:00
parent ce2f1d90d5
commit e191b55b75

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()