additional changes
This commit is contained in:
@@ -3,5 +3,5 @@ import { logger } from "lib/common-logger";
|
||||
|
||||
export const handleShutdown = async () => {
|
||||
logger.info("bot is shutting down...");
|
||||
await logChannelService.sendLogMessage("ich geh schlafen...");
|
||||
await logChannelService.sendLogMessage("**S H U T T I N G D O W N**");
|
||||
};
|
||||
|
||||
@@ -16,6 +16,7 @@ export const ConfigSchema = z.object({
|
||||
}),
|
||||
guildId: z.string(),
|
||||
version: z.number(),
|
||||
commandPrefix: z.string().default("!"),
|
||||
discord: z.object({
|
||||
token: z.string(),
|
||||
applicationId: z.string(),
|
||||
|
||||
@@ -26,5 +26,10 @@ export const dynamicVoiceChannelService = new DynamicVoiceChannelsService(
|
||||
key: VoiceChannels.enum["for-group"],
|
||||
size: 99,
|
||||
},
|
||||
{
|
||||
channelId: config.channelMapping.voice.custom,
|
||||
key: VoiceChannels.enum.custom,
|
||||
size: 99,
|
||||
},
|
||||
],
|
||||
);
|
||||
|
||||
@@ -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