fix: quotes not working #60
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue