aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common')
-rw-r--r--src/lib/common/AutoMod.ts6
-rw-r--r--src/lib/common/HighlightManager.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index db3e709..1aa6266 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -200,7 +200,7 @@ export class AutoMod {
}
},
(err: any, response: any) => {
- if (err) return console.log(err?.message);
+ if (err) return client.console.stdout(err?.message);
const normalize = (val: number, min: number, max: number) => (val - min) / (max - min);
@@ -214,10 +214,10 @@ export class AutoMod {
}
};
- console.log(chalk.cyan(this.message.content));
+ client.console.stdout(chalk.cyan(this.message.content));
Object.entries(response.data.attributeScores)
.sort(([a], [b]) => a.localeCompare(b))
- .forEach(([key, value]: any[]) => console.log(chalk.white(key), color(value.summaryScore.value)));
+ .forEach(([key, value]: any[]) => client.console.raw(chalk.white(key), color(value.summaryScore.value)));
}
);
}
diff --git a/src/lib/common/HighlightManager.ts b/src/lib/common/HighlightManager.ts
index a8bacee..4347c27 100644
--- a/src/lib/common/HighlightManager.ts
+++ b/src/lib/common/HighlightManager.ts
@@ -214,7 +214,7 @@ export class HighlightManager {
if (this.lastedDMedUserCooldown.has(user)) {
const lastDM = this.lastedDMedUserCooldown.get(user)!;
if (new Date().getTime() - lastDM.getTime() < 5 * Time.Minute) {
- console.log(`User ${user} has been dmed recently.`);
+ void client.console.verbose('Highlight', `User <<${user}>> has been dmed recently.`);
return false;
}
}