additional changes
This commit is contained in:
@@ -13,7 +13,9 @@ client.on(Events.GuildMemberAdd, async (member: GuildMember) => {
|
||||
}
|
||||
|
||||
const channel = await client.channels.fetch(
|
||||
config.channelMapping.text.welcome,
|
||||
process.env.NODE_ENV === "production"
|
||||
? config.channelMapping.text.welcome
|
||||
: config.channelMapping.text.testing,
|
||||
);
|
||||
|
||||
await logChannelService.sendLogMessage(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import "./ready.listener";
|
||||
import "./stop.listener";
|
||||
import "./messages/messages.listener";
|
||||
import "./reactions/reactions.listener";
|
||||
import "./guild-members/guild-members.listener";
|
||||
|
||||
@@ -7,14 +7,6 @@ import { logger } from "lib/common-logger";
|
||||
import { handleCommand } from "./handle-command";
|
||||
|
||||
client.on(Events.MessageCreate, async (message: Message) => {
|
||||
// if (
|
||||
// message.channel?.id !== config.channelMapping.text.log &&
|
||||
// message.channel?.id !== config.channelMapping.text.bot
|
||||
// ) {
|
||||
// return;
|
||||
// // await messagesService.logMessage(message);
|
||||
// }
|
||||
|
||||
if (message.content?.startsWith(config.commandPrefix) && message.channel) {
|
||||
await messagesService.logMessage(message);
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user