mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-10 01:08:07 +01:00
refactor: remove unused method
This commit is contained in:
parent
4abdefa7a4
commit
78a393130a
1 changed files with 0 additions and 11 deletions
|
@ -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}`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue