CliSite/commands/screenshot.ts
2022-06-12 09:38:38 +02:00

8 lines
305 B
TypeScript

import {Socket} from 'socket.io';
function screenshot(args:Array<string>, curdir:any, buffer:{ [id: string]: string }, socket:Socket):string {
var buf = "";
curdir[socket.id][args[0]] = buffer[socket.id];
buf += "Screenshot saved to " + args[0] + "\n";
return buf;
}
export { screenshot };