MCPcopy Create free account
hub / github.com/RTByte/rtbyte / botReadyLog

Method botReadyLog

src/events/rtbyteReady.js:50–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 async botReadyLog() {
51 const embed = new MessageEmbed()
52 .setAuthor(this.client.user.username, this.client.user.displayAvatarURL())
53 .setColor(this.client.settings.get('colors.yellow'))
54 .setTimestamp()
55 .setFooter('Bot restarted');
56
57 const globalLog = await this.client.channels.cache.get(this.client.settings.get('channels.globalLog'));
58 if (globalLog) await globalLog.send('', { disableEveryone: true, embed: embed });
59
60 return;
61 }
62
63 async setControlGuild() {
64 await this.client.emit('verbose', 'Setting control guild.');

Callers 1

runMethod · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected