From be547b0e5d412ca2b7a68009985e8cf8fd5f9062 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 9 Apr 2021 14:25:05 +0200 Subject: [PATCH] Increase IRC timeout delay --- src/fetcher/irc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fetcher/irc.js b/src/fetcher/irc.js index 6ba63f2..8c70f0b 100644 --- a/src/fetcher/irc.js +++ b/src/fetcher/irc.js @@ -20,7 +20,7 @@ module.exports = async (hostname, nickQuery, opts) => { const timeoutPromise = new Promise((resolve, reject) => { timeoutHandle = setTimeout( () => reject(new Error('Request was timed out')), - 5000 + 20000 ) }) @@ -39,6 +39,7 @@ module.exports = async (hostname, nickQuery, opts) => { client.send(`PRIVMSG NickServ :TAXONOMY ${nickQuery}`) }) client.addListener('notice', (nick, to, text, message) => { + console.log(text); if (reKey.test(text)) { const match = text.match(reKey) keys.push(match[1])