Updated environment var names to match convention
This commit is contained in:
@@ -5,7 +5,7 @@ import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
const approvedLinksChannel = "767303243285790721";
|
||||
const restrictedChannelIds = process.env.LINKCOP_RESTRICTED_CHANNELS.split(',');
|
||||
const restrictedChannelIds = process.env.LINKCOP_RESTRICTED_CHANNEL_IDS.split(',');
|
||||
|
||||
const linkRegExp = /(?:http[s]?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)/g
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Events } from 'discord.js';
|
||||
import { gptInteraction } from '../addons/gptInteraction.mjs';
|
||||
import { linkCop } from '../addons/linkCop.mjs';
|
||||
|
||||
const IGNORED_CHANNELS = process.env.IGNORED_CHANNELS.split(',');
|
||||
const IGNORED_CHANNELS = process.env.IGNORED_CHANNEL_IDS.split(',');
|
||||
|
||||
export const name = Events.MessageCreate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user