From b026e89ff87c6cc68bd483aa7d26bca3d3b56be4 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 14 Aug 2016 00:18:26 +0200 Subject: [PATCH] modified: src/main.js --- src/main.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.js b/src/main.js index b66169e..4f40b5c 100644 --- a/src/main.js +++ b/src/main.js @@ -34,19 +34,19 @@ bot.on('message', (e) => { if(orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi)) { var tmp = orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); - tmp.forEach((entry,i,a) => { + tmp.forEach((entry,i,a) => { dl(entry, "./b/test.png", (cb) => { e.reply(cb); - }); - }); + }); + }); } else if(orig.match(/^\.test/)) { var tmp = getUser(e.user.getNick(), e.network); - - setTimeout(()=>{ - e.reply(tmp); - }, 2000); - } + + setTimeout(()=>{ + e.reply(tmp); + }, 2000); + } } });