diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-07-29 21:42:13 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-07-29 21:42:13 -0400 |
| commit | d6608d0e5d6db5c4f5676e59eea24b3e52836caa (patch) | |
| tree | 230e0b63a6a20ef29cee0b00526e0a5f99ee727f | |
| parent | a45aa1e5c8a6c90902ac2ed4a5d39bdf367401bd (diff) | |
| download | AleeBot-d6608d0e5d6db5c4f5676e59eea24b3e52836caa.tar.gz AleeBot-d6608d0e5d6db5c4f5676e59eea24b3e52836caa.tar.bz2 AleeBot-d6608d0e5d6db5c4f5676e59eea24b3e52836caa.zip | |
Add some stuff
| -rw-r--r-- | aleebot.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -203,6 +203,9 @@ client.on("message", function(message){ } }); + process.on('unhandledRejection', function(err, p) { + console.log("[ERROR | UNCAUGHT PROMISE] " + err.stack); +}); client.login (config.token).catch(function() { console.log("[ERROR] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com."); |
