This commit is contained in:
loicbersier 2018-11-21 02:11:10 +01:00
parent 11de88b009
commit 010d201924

View file

@ -22,7 +22,7 @@ module.exports = class printCommand extends Command {
}
async run(message, { text }) {
printer.printDirect({data:text, printer:'HP-Color-LaserJet-CM1312-MFP'
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);