add quit command

This commit is contained in:
Leppunen 2020-12-22 11:13:04 +02:00
parent 87d1582e01
commit 2aa7f651cb
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ pnslWebSocket.on('message', async (data) => {
return say(channel || channelName, `${clients.filter((i) => i.ready).length} Clients from total of ${clients.length} are operational`);
}
if (command === 'quit') {
process.exit(0);
}
if (command === 'runlist') {
const listID = args[0];
const channel = args[1];