Transaction beetwin 2 tools OK

This commit is contained in:
poka 2020-08-08 03:26:00 +02:00
parent 38da6428c1
commit 0c7aaf43a3
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,11 @@ module.exports = (robot) => {
});
});
robot.hear(/debug conc/i, function (msg) {
cmd = msg.envelope.message.text
process.env.hb_cmd = cmd
setTimeout(() => { msg.send("coucou " + cmd); }, 2000);
});
}

View File

@ -18,6 +18,7 @@ module.exports = (robot) => {
exec("scripts/shell/gbanque.sh $hb_cmd~~~$hb_username~~~$hb_room", function(err, stdout, stderr) {
if (err) {
msg.send("Une erreur est survenu ..." + stderr)
console.log("Statut d'erreur: " + err)
} else {
msg.send(stdout)
}