aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-19 16:43:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-19 16:43:37 -0400
commitea64ebfff9aae32deb036643422d3427959dcd24 (patch)
tree5ab83558642bad282515837424637070f547a05e /src/listeners/client
parentd055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff)
downloadtanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.tar.gz
tanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.tar.bz2
tanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.zip
feat(*): A bunch of stuff
- Remade logging - updated dependencies - started adding custom crap to the command handler - added emojis to stuff - can't remeber other stuff Note: this is currently broken BREAKING CHANGE:
Diffstat (limited to 'src/listeners/client')
-rw-r--r--src/listeners/client/ready.ts21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts
index d4b2808..a87d216 100644
--- a/src/listeners/client/ready.ts
+++ b/src/listeners/client/ready.ts
@@ -10,6 +10,25 @@ export default class ReadyListener extends BushListener {
}
public async exec(): Promise<void> {
- await this.client.logger.log(chalk`{green Sucessfully logged in as {cyan ${this.client.user.tag}}.}`, true);
+ //@ts-expect-error: ik its private, this is the only time I need to access it outside of its class
+ const timeStamp = chalk.bgGreen(this.client.logger.getTimeStamp()),
+ tag = chalk.magenta(this.client.user.tag),
+ guildCount = chalk.magenta(this.client.guilds.cache.size.toLocaleString()),
+ userCount = chalk.magenta(this.client.users.cache.size.toLocaleString());
+
+ console.log(`${timeStamp} Logged in to ${tag} serving ${guildCount} guilds and ${userCount} users.`);
+ console.log(
+ chalk.blue(`----------------------------------------------------------------------${this.client.config.dev ? '---' : ''}`)
+ );
+
+ this.client.user.setPresence({
+ activities: [
+ {
+ name: 'Beep Boop',
+ type: 'WATCHING'
+ }
+ ],
+ status: 'online'
+ });
}
}