forked from Supositware/Haha-Yes
now show who printed
This commit is contained in:
parent
af080897a9
commit
d0c90e8cf9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module.exports = class printCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, { text }) {
|
async run(message, { text }) {
|
||||||
printer.printDirect({data:text
|
printer.printDirect({data:`Printed by: ${message.author.username}\n${text}`
|
||||||
, type: 'TEXT' // type: RAW, TEXT, PDF, JPEG, .. depends on platform
|
, type: 'TEXT' // type: RAW, TEXT, PDF, JPEG, .. depends on platform
|
||||||
, success:function(jobID){
|
, success:function(jobID){
|
||||||
console.log("sent to printer with ID: "+jobID);
|
console.log("sent to printer with ID: "+jobID);
|
||||||
|
|
Loading…
Reference in a new issue