We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0767d8 commit 7df75deCopy full SHA for 7df75de
src/handlers/handle-guild-message-creation.ts
@@ -3,10 +3,11 @@ import { MessageType } from 'discord.js';
3
4
const urlMappings = [
5
{
6
- pattern: /https?:\/\/(mobile\.)?twitter\.com\/\S+/g,
7
- replacement: 'https://vxtwitter.com',
+ pattern: /https?:\/\/(mobile\.)?twitter\.com\/(\S+)/g,
+ replacement: 'https://vxtwitter.com/$2',
8
},
9
];
10
+
11
export const handleGuildMessageCreation = async (message: Message) => {
12
if (message.author.bot) {
13
return;
0 commit comments