accept user discord implementation

This commit is contained in:
mo
2026-03-01 16:50:43 +01:00
parent 331fea2c10
commit 0e014dd08d
8 changed files with 93 additions and 22 deletions

View File

@@ -0,0 +1,10 @@
import { AcceptUserService } from "@avocadi/bot-core/features/accept-user/accept-user.service";
import { i18nService } from "@avocadi/bot-core/lib/i18n";
import type { User } from "discord.js";
import { messagesService } from "entities/messages/messages.service";
export const acceptUserService = new AcceptUserService<User>(
messagesService,
i18nService,
"de",
);

View File

@@ -3,7 +3,10 @@ import client from "lib/client";
import { logger } from "lib/common-logger";
export class LogChannelService {
private logChannelId = config.channelMapping.text.log;
private logChannelId =
process.env.NODE_ENV === "production"
? config.channelMapping.text.log
: config.channelMapping.text.testing;
async getLogChannel() {
const logChannel = await client.channels.fetch(this.logChannelId);