From 8943da7a68591a88813a46c59fdf8f6ae6274f59 Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 25 Mar 2018 10:09:39 -0400 Subject: Adding icons in the command handler loading process --- bot_discord.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot_discord.js b/bot_discord.js index 23de734..cfac9b0 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -20,23 +20,23 @@ client.servers = {}; fs.readdir('./commands', (err, files) => { if (err) console.error(err); - console.log(`Attempting to load a total of ${files.length} commands into the memory.`); + console.log(`[!] Attempting to load a total of ${files.length} commands into the memory.`); files.forEach(file => { try { const command = require(`./commands/${file}`); - console.log(`Attempting to load the command "${command.help.name}".`); + console.log(`[!] Attempting to load the command "${command.help.name}".`); client.commands.set(command.help.name, command); command.conf.aliases.forEach(alias => { client.aliases.set(alias, command.help.name); - console.log(`Attempting to load "${alias}" as an alias for "${command.help.name}"`); + console.log(`[!] Attempting to load "${alias}" as an alias for "${command.help.name}"`); }); } catch (err) { - console.log('An error has occured trying to load a command. Here is the error.'); + console.log('[X] An error has occured trying to load a command. Here is the error.'); console.log(err.stack); } }); - console.log('Command Loading complete!'); + console.log('[>] Command Loading complete!'); console.log('\n'); }); -- cgit v1.2.3