diff --git a/index.js b/index.js index 4a35a27..491ee78 100644 --- a/index.js +++ b/index.js @@ -55,12 +55,12 @@ const getConnection = () => { const listID = msg.messageText.split(' ')[1]; const channel = msg.messageText.split(' ')[2]; if (!uuidRegex.test(listID)) { - return clients[1].say(msg.channelName, 'Invalid List ID!'); + return clients[0].say(msg.channelName, 'Invalid List ID!'); } const {body, statusCode} = await pnslClient(`BotLists/${listID}`); if (statusCode === 404) { - return clients[1].say(msg.channelName, 'List was not found.'); + return clients[0].say(msg.channelName, 'List was not found.'); } if (statusCode === 401) {