isup timeout
This commit is contained in:
parent
f1730f9ad4
commit
a0f61a461b
@ -239,7 +239,7 @@ export default bot => {
|
|||||||
set: "nxy",
|
set: "nxy",
|
||||||
f: e => {
|
f: e => {
|
||||||
const addr = !e.args[0].match(/^https?/g) ? `https://${e.args[0]}` : e.args[0];
|
const addr = !e.args[0].match(/^https?/g) ? `https://${e.args[0]}` : e.args[0];
|
||||||
rp(addr)
|
rp(addr, { timeout: 2000 })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
e.reply(`[b]${addr}[/b] seems to be [b]up[/b].`);
|
e.reply(`[b]${addr}[/b] seems to be [b]up[/b].`);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user