isup timeout

This commit is contained in:
Flummi 2018-07-30 15:08:07 +02:00
parent f1730f9ad4
commit a0f61a461b

View File

@ -239,7 +239,7 @@ export default bot => {
set: "nxy",
f: e => {
const addr = !e.args[0].match(/^https?/g) ? `https://${e.args[0]}` : e.args[0];
rp(addr)
rp(addr, { timeout: 2000 })
.then(res => {
e.reply(`[b]${addr}[/b] seems to be [b]up[/b].`);
})