diff --git a/src/commands/custom/set.ts b/src/commands/custom/set.ts index b33e58f..2e7f526 100644 --- a/src/commands/custom/set.ts +++ b/src/commands/custom/set.ts @@ -101,7 +101,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -116,7 +116,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | Owner => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral diff --git a/src/commands/rank/buyer.ts b/src/commands/rank/buyer.ts index d221dc3..a781269 100644 --- a/src/commands/rank/buyer.ts +++ b/src/commands/rank/buyer.ts @@ -38,7 +38,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | Buyer => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -53,7 +53,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -222,7 +222,7 @@ export default { flags: MessageFlags.Ephemeral }); } catch (err) { - console.error(`⚠️ | Buyer => error when fetching infromation from the database: ${err}`); + console.error(`⚠️ | error when fetching infromation from the database: ${err}`); await interaction.reply({ content: `${emoji.answer.error} | Cannot fetch the infromation of the database.`, flags: MessageFlags.Ephemeral diff --git a/src/commands/rank/owner.ts b/src/commands/rank/owner.ts index 349e03e..b6ea081 100644 --- a/src/commands/rank/owner.ts +++ b/src/commands/rank/owner.ts @@ -38,7 +38,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | Owner => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -53,7 +53,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -212,7 +212,7 @@ export default { flags: MessageFlags.Ephemeral }); } catch (err) { - console.error(`⚠️ | Buyer => error when fetching infromation from the database: ${err}`); + console.error(`⚠️ | error when fetching infromation from the database: ${err}`); await interaction.reply({ content: `${emoji.answer.error} | Cannot fetch the infromation of the database.`, flags: MessageFlags.Ephemeral diff --git a/src/commands/rank/whitelist.ts b/src/commands/rank/whitelist.ts index 87641f2..3bf7626 100644 --- a/src/commands/rank/whitelist.ts +++ b/src/commands/rank/whitelist.ts @@ -53,7 +53,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts index 31d77c4..1c4b6c5 100644 --- a/src/commands/utils/info.ts +++ b/src/commands/utils/info.ts @@ -67,7 +67,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -87,7 +87,7 @@ export default { } }); } catch (err) { - console.error(`\t⚠️ | USERINFO => Cannot get the database connection!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot connect to the database`, flags: MessageFlags.Ephemeral @@ -98,7 +98,7 @@ export default { try { targetServer = await interaction.guild.members.fetch(targetGlobal.id); } catch (err) { - console.error(`\t⚠️ | USERINFO => Cannot get the targetServer!\n\t\t(${err}).`); + console.error(`\t⚠️ | Cannot get the targetServer!\n\t\t(${err}).`); await interaction.reply({ content: `${emoji.answer.error} | Cannot get the guild profile of the user`, flags: MessageFlags.Ephemeral diff --git a/src/events/client/ready.ts b/src/events/client/ready.ts index a7fe00a..9de5417 100644 --- a/src/events/client/ready.ts +++ b/src/events/client/ready.ts @@ -67,11 +67,7 @@ export default { }); } } catch (err) { - console.error(`\t⚠️ | INFO => Cannot get the database connection!\n\t\t(${err}).`); - await interaction.reply({ - content: `${emoji.answer.error} | Cannot connect to the database`, - flags: MessageFlags.Ephemeral - }); + console.error(`\t⚠️ | Cannot get the database connection!\n\t\t(${err}).`); return; } console.log(`✅ | ${client.user.username} is now running under TTS bot`);