.
This commit is contained in:
parent
0834adf6e9
commit
ee3e2b33b8
2 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,7 @@ async function runCommand(msg, cmd, line) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error("hf:cmd:" + cmd, err);
|
logger.error("hf:cmd:" + cmd, err + "\n" + err.stack);
|
||||||
return ":warning: An internal error occurred.";
|
return ":warning: An internal error occurred.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,6 +276,8 @@ lookupinvite.callback = async function (msg, line) {
|
||||||
return "No arguments passed.";
|
return "No arguments passed.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
line = line.replace(/(https?:\/\/)?discord\.gg\//, "");
|
||||||
|
|
||||||
const invite = await hf.bot.requestHandler.request({
|
const invite = await hf.bot.requestHandler.request({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: `/invites/${line}?with_counts=1`,
|
path: `/invites/${line}?with_counts=1`,
|
||||||
|
|
Loading…
Reference in a new issue