refactor: remove unused method

This commit is contained in:
Jozef Steinhübl 2024-05-11 00:36:27 +02:00
parent 4abdefa7a4
commit 78a393130a
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -133,14 +133,3 @@ async function handleBunReportLink(message: Message): Promise<void> {
},
});
}
function handleTwitterLink(message: Message): void {
if (!message.content) return;
const match = TWITTER_TWEET_URL_REGEX.exec(message.content);
if (!match || !match.groups?.user || !match.groups?.id) return;
message.reply(
`https://fxtwitter.com/${match.groups.user}/status/${match.groups.id}`
);
}