Transaction beetwin 2 tools OK
This commit is contained in:
parent
38da6428c1
commit
0c7aaf43a3
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue