log errors
This commit is contained in:
parent
df71d9094e
commit
92abe24bce
@ -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();
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user