Strip ?s from twitter links
All checks were successful
continuous-integration/drone/push Build is passing

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

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