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)
|
||||
return;
|
||||
|
||||
channel.then(ch => {
|
||||
channel
|
||||
.then(ch => {
|
||||
ch.say(
|
||||
(req.body.playername ? `<${req.body.playername}> ` : "") +
|
||||
req.body.message
|
||||
);
|
||||
});
|
||||
})
|
||||
.catch(e => console.log(e));
|
||||
|
||||
res.end();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user