diff --git a/src/app.ts b/src/app.ts index 96851014..da652336 100644 --- a/src/app.ts +++ b/src/app.ts @@ -60,8 +60,10 @@ async function init() { } client.on('ready', async () => { + const skipDB: boolean = config.args['skipDB']; + // Setup Prefixes - await db.initServers(client); + if (!skipDB) await db.initServers(client); // Setup players util.initPlayers(client); @@ -83,7 +85,7 @@ client.on('ready', async () => { // Read command files and create a collection for the commands sys.initCommands(); - logger.log('info', chalk.bgCyan.bold(`${client.user.username} online!`)); + logger.info(chalk.bgCyan.bold(`${client.user.username} online in ${client.guilds.cache.size} servers!`)); }); // eslint-disable-next-line complexity diff --git a/src/database/api/serverApi.ts b/src/database/api/serverApi.ts index b805059f..4c066c67 100644 --- a/src/database/api/serverApi.ts +++ b/src/database/api/serverApi.ts @@ -142,7 +142,8 @@ export async function initServers(client: Client) { servers.map(server => { const serverPrefix = server.prefixes.find(s => s.botId === client.user.id)?.prefix; - if (serverPrefix) logger.info(`prefix for ${server.serverName}: ${serverPrefix}`); + // if (serverPrefix) logger.info(`prefix for ${server.serverName}: ${serverPrefix}`); + prefixes.set(server.serverId, serverPrefix || defaultPrefix); // Set banned channels to collection diff --git a/src/util/musicUtil.ts b/src/util/musicUtil.ts index a264b747..99220f4e 100644 --- a/src/util/musicUtil.ts +++ b/src/util/musicUtil.ts @@ -50,7 +50,7 @@ export async function initPlayers(client: Client) { client.guilds.cache.map(async guild => { const guildResolved = await client.guilds.fetch(guild.id); - logger.log('info', chalk.bgBlue.bold(`${guildResolved.name}, ${guildResolved.id}`)); + // logger.log('info', chalk.bgBlue.bold(`${guildResolved.name}, ${guildResolved.id}`)); players.set(guildResolved.id, new Player(guildResolved, client)); });