log errors

This commit is contained in:
NatureFreshMilk 2019-09-06 08:05:34 +02:00
parent df71d9094e
commit 92abe24bce

View File

@ -13,12 +13,14 @@ app.post('/', jsonParser, function(req, res){
if (!req.body.channel) if (!req.body.channel)
return; return;
channel.then(ch => { channel
.then(ch => {
ch.say( ch.say(
(req.body.playername ? `<${req.body.playername}> ` : "") + (req.body.playername ? `<${req.body.playername}> ` : "") +
req.body.message req.body.message
); );
}); })
.catch(e => console.log(e));
res.end(); res.end();
}); });