update README and demo.js
This commit is contained in:
@ -47,7 +47,9 @@ function fetch(path, data) {
|
||||
req.write(post);
|
||||
}
|
||||
req.end();
|
||||
})['catch'](console.error);
|
||||
})['catch'](function (err) {
|
||||
console.error('Error sending request', err);
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = exports['default'];
|
||||
|
@ -148,7 +148,7 @@ var Message = (function (_Base) {
|
||||
bot.removeListener('update', listener);
|
||||
}
|
||||
});
|
||||
})['catch'](console.error);
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
|
Reference in New Issue
Block a user