aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot.js b/bot.js
index f0a9c63..6978ea7 100644
--- a/bot.js
+++ b/bot.js
@@ -45,7 +45,7 @@ for (const file of commandFiles) {
bot.commands.set(command.data.name, command);
}
-bot.once('ready', () => {
+bot.once('ready', async () => {
console.log('Bot is ready!');
console.log(`Logged in as ${bot.user.tag}!`);
console.log(`Running on Discord.JS ${version}`)
@@ -67,15 +67,15 @@ bot.once('ready', () => {
// Send bots' status to channel
const readyEmbed = new MessageEmbed()
- .setAuthor({ name: bot.user.username, iconURL: bot.user.avatarURL()} )
- .setDescription('Starting bot...')
- .setColor('#0066ff')
+ .setAuthor({name: bot.user.username, iconURL: bot.user.avatarURL()})
+ .setDescription('Starting bot...')
+ .setColor('#0066ff')
let statusChannel = bot.channels.cache.get(config.statusChannel);
if (!statusChannel) return console.error('The status channel does not exist! Skipping.');
- statusChannel.send({ embeds: [readyEmbed]});
+ await statusChannel.send({embeds: [readyEmbed]});
- voiceInit(bot);
+ await voiceInit(bot);
});