fix: quotes not working #60

Merged
Anri merged 2 commits from fix/quotes into main 2023-01-20 03:43:55 +01:00
2 changed files with 6 additions and 2 deletions

View file

@ -23,7 +23,7 @@ export default async (message: Message, client: Client) => {
/* Citation */ /* Citation */
const regex = const regex =
"https://(?:canary\\.|ptb\\.)?discord(?:app)?\\.com/channels/(\\d{17,19})/(\\d{17,19})/(\\d{17,19})"; /https:\/\/(?:canary\.|ptb\.)?discord(?:app)?\.com\/channels\/(\d{17,19})\/(\d{17,19})\/(\d{17,19})/g;
const urls = message.content.match(new RegExp(regex, "g")); const urls = message.content.match(new RegExp(regex, "g"));
// Ignore message if there is no URLs // Ignore message if there is no URLs

View file

@ -7,7 +7,11 @@ import { Database } from "sqlite3";
/** Creation of the client and definition of its properties. */ /** Creation of the client and definition of its properties. */
export default async () => { export default async () => {
const client: Client = new Client({ const client: Client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages], intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
}); });
client.config = { client.config = {