diff options
| author | Alee14 <alee14498@gmail.com> | 2017-06-13 12:28:31 -0400 |
|---|---|---|
| committer | Alee14 <alee14498@gmail.com> | 2017-06-13 12:28:31 -0400 |
| commit | aa745d7a3bd15155853de5e53ac9292f93a533eb (patch) | |
| tree | 4c955a873d89f7af097de8db8812f2f9ea67418f /aleebot.js | |
| parent | 15d2513ca69fc92d50696876ce9492612e691d74 (diff) | |
| download | AleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.tar.gz AleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.tar.bz2 AleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.zip | |
Updating things
Diffstat (limited to 'aleebot.js')
| -rw-r--r-- | aleebot.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -161,6 +161,10 @@ client.on('message', 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."); }); |
