diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-08-15 15:51:59 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-08-15 15:51:59 -0400 |
| commit | 34283160c59560882c53626b7c3dbb6ff0f101cc (patch) | |
| tree | edd3f5c2c9915bc1be1b69041aac9b0eb2ec64eb /aleebot.js | |
| parent | 0835e9e501d86afd67ae2ca48673bf87760408cb (diff) | |
| download | AleeBot-34283160c59560882c53626b7c3dbb6ff0f101cc.tar.gz AleeBot-34283160c59560882c53626b7c3dbb6ff0f101cc.tar.bz2 AleeBot-34283160c59560882c53626b7c3dbb6ff0f101cc.zip | |
Handling errors
Diffstat (limited to 'aleebot.js')
| -rw-r--r-- | aleebot.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -198,7 +198,7 @@ commandProcessed = true; if(command === 'plan'){ message.channel.send ('```Plans for future versions of AleeBot\n\n' + '1. Playing Music\n' + - "2. Error Handler\n```"); + "If you want a suggestion go DM alee14.\n```"); } @@ -307,6 +307,14 @@ commandProcessed = true; message.channel.send(":ship: "+ message.author.username + " x " + message.guild.members.random().displayName); } + try{ + + }catch(err){ + message.reply('Error: '+ err); + console.log('A error just happend! Details: '+ err) + } + + }); const clean = text => { |
