diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-08-14 01:36:46 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-08-14 01:36:46 -0400 |
| commit | 0807b891171593aab55eaac988771179f677e484 (patch) | |
| tree | 4ba79eb887aaa4de403efe04edd25a299b28af6d | |
| parent | 9216bfb572e0e57e830fba9d1ada54c7ef6fcaba (diff) | |
| download | AleeBot-0807b891171593aab55eaac988771179f677e484.tar.gz AleeBot-0807b891171593aab55eaac988771179f677e484.tar.bz2 AleeBot-0807b891171593aab55eaac988771179f677e484.zip | |
Error handler (I think so)
| -rw-r--r-- | aleebot.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -329,6 +329,10 @@ commandProcessed = true; } if(command === 'ship'){ message.channel.send(":ship: "+ message.author.username + " x " + message.guild.members.random().displayName); + } catch(err) { + let embed = new Discord.RichEmbed() + .setAuthor("Help... A error as occured"); + embed.setDescription("An error just happen: " + err) } /* else |
