From 2aa7f651cb9ae3ea4b2653ae0ea4c13dddc4305e Mon Sep 17 00:00:00 2001 From: Leppunen Date: Tue, 22 Dec 2020 11:13:04 +0200 Subject: [PATCH] add quit command --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index f8a7535..88d3adf 100644 --- a/index.js +++ b/index.js @@ -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];