From 78a393130ac068ee7343dc2e9a02d14f31511957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 11 May 2024 00:36:27 +0200 Subject: [PATCH] refactor: remove unused method --- src/listeners/message_create.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/listeners/message_create.tsx b/src/listeners/message_create.tsx index 4de261b..3562537 100644 --- a/src/listeners/message_create.tsx +++ b/src/listeners/message_create.tsx @@ -133,14 +133,3 @@ async function handleBunReportLink(message: Message): Promise { }, }); } - -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}` - ); -}