additional changes

This commit is contained in:
mo
2026-03-01 16:55:23 +01:00
parent 0e014dd08d
commit 93788b9873
11 changed files with 54 additions and 14 deletions

View File

@@ -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**");
};

View File

@@ -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(),

View File

@@ -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,
},
],
);

View File

@@ -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(

View File

@@ -1,4 +1,5 @@
import "./ready.listener";
import "./stop.listener";
import "./messages/messages.listener";
import "./reactions/reactions.listener";
import "./guild-members/guild-members.listener";

View File

@@ -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(