This commit is contained in:
Leppunen 2020-12-15 18:29:22 +02:00
parent 4048a878e6
commit c215778860
1 changed files with 2 additions and 2 deletions

View File

@ -55,12 +55,12 @@ const getConnection = () => {
const listID = msg.messageText.split(' ')[1]; const listID = msg.messageText.split(' ')[1];
const channel = msg.messageText.split(' ')[2]; const channel = msg.messageText.split(' ')[2];
if (!uuidRegex.test(listID)) { 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}`); const {body, statusCode} = await pnslClient(`BotLists/${listID}`);
if (statusCode === 404) { 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) { if (statusCode === 401) {