diff --git a/src/client.ts b/src/client.ts index e0440e9..a36275c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -216,7 +216,7 @@ export class TClient extends Client { }) } catch(err){ error = true; - console.log(`\x1b[36m[${this.moment().format('DD/MM/YY HH:mm:ss')}]`, `\x1b[31m${YTChannelName} YT fail`) + console.log(`[${this.moment().format('DD/MM/YY HH:mm:ss')}]`, `${YTChannelName} YT fail`) } if (!Data) return; diff --git a/src/database.ts b/src/database.ts index 7942b29..185ff26 100644 --- a/src/database.ts +++ b/src/database.ts @@ -49,7 +49,7 @@ export class Database { const newJson = JSON.stringify(db._content); if (oldJson !== newJson || force){ writeFileSync(this._path, JSON.stringify(this._content, null, 2)); - if (this._saveNotifs) console.log(`\x1b[36m[${moment().format('DD/MM/YY HH:mm:ss')}] \x1b[33m` + this._path + ' Database saved'); + if (this._saveNotifs) console.log(`[${moment().format('DD/MM/YY HH:mm:ss')}]` + this._path + ' Database saved'); } return db; } diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts index 6b5767f..5a25b75 100644 --- a/src/events/interactionCreate.ts +++ b/src/events/interactionCreate.ts @@ -14,7 +14,7 @@ export default { commandFile.default.run(client, interaction); commandFile.uses ? commandFile.uses++ : commandFile.uses = 1; } catch (error:any){ - console.log(`\x1b[31mAn error occured while running command "${commandFile.name}"`, error, error.stack); + console.log(`An error occured while running command "${commandFile.name}"`, error, error.stack); return interaction.reply('An error occured while executing that command.'); } } diff --git a/src/index.ts b/src/index.ts index eb8f3c0..da8b705 100644 --- a/src/index.ts +++ b/src/index.ts @@ -143,9 +143,9 @@ setInterval(async()=>{ const lrsStart = client.config.LRSstart; client.punishments._content.filter((x:Punishment)=>x.endTime<= now && !x.expired).forEach(async (punishment:Punishment)=>{ - console.log(`\x1b[36m[${client.moment().format('DD/MM/YY HH:mm:ss')}]`, '\x1b[32m' + `${punishment.member}\'s ${punishment.type} should expire now`); + console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}]` + `${punishment.member}\'s ${punishment.type} should expire now`); const unpunishResult = await client.punishments.removePunishment(punishment.id, client.user.id, 'Time\'s up!'); - console.log(`\x1b[36m[${client.moment().format('DD/MM/YY HH:mm:ss')}]`, '\x1b[32m' + unpunishResult); + console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}]` + unpunishResult); }); const formattedDate = Math.floor((now - lrsStart)/1000/60/60/24); @@ -158,6 +158,6 @@ setInterval(async()=>{ } dailyMsgs.push([formattedDate, total]); fs.writeFileSync(__dirname + '/database/dailyMsgs.json', JSON.stringify(dailyMsgs)) - console.log(`\x1b[36m[${client.moment().format('DD/MM/YY HH:mm:ss')}] \x1b[33m`, `Pushed [${formattedDate}, ${total}] to dailyMsgs`) + console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}]`, `Pushed [${formattedDate}, ${total}] to dailyMsgs`) } }, 5000)