loicbersier 6 years ago
parent 4cee009d22
commit 72e132643e

@ -25,11 +25,10 @@ module.exports = class printCommand extends Command {
printer.printDirect({data:text
, type: 'TEXT' // type: RAW, TEXT, PDF, JPEG, .. depends on platform
, success:function(jobID){
console.log("sent to printer with ID: "+jobID);
console.log("sent to printer with ID: "+jobID);
message.say("Printing now! ( if everything have gone correctly )")
}
, error:function(err){console.log(err);}
});
message.say("Printing now! ( if everything have gone correctly )")
}
};
Loading…
Cancel
Save