feat(discord-bot): use new logger

This commit is contained in:
Pihkaal
2025-12-05 20:24:17 +01:00
parent a541b82404
commit cf6cc7ff7b
9 changed files with 70 additions and 21 deletions

View File

@@ -1,10 +1,12 @@
import { logger } from "@lbf-bot/utils";
import type { Client, TextChannel } from "discord.js";
import { ChannelType } from "discord.js";
import * as readline from "node:readline";
export const setupUserMode = (client: Client, channelId: string) => {
client.on("clientReady", (client) => {
console.log(`Logged in as ${client.user.username}`);
logger.info(`Client ready`);
logger.info(`Connected as @${client.user.username}`);
const chan = client.channels.cache.get(channelId);
if (chan?.type !== ChannelType.GuildText) {