This commit is contained in:
Cynthia Foxwell 2023-01-26 22:54:33 -07:00
parent 0834adf6e9
commit ee3e2b33b8
2 changed files with 3 additions and 1 deletions

View file

@ -105,7 +105,7 @@ async function runCommand(msg, cmd, line) {
return ret;
}
} catch (err) {
logger.error("hf:cmd:" + cmd, err);
logger.error("hf:cmd:" + cmd, err + "\n" + err.stack);
return ":warning: An internal error occurred.";
}
}

View file

@ -276,6 +276,8 @@ lookupinvite.callback = async function (msg, line) {
return "No arguments passed.";
}
line = line.replace(/(https?:\/\/)?discord\.gg\//, "");
const invite = await hf.bot.requestHandler.request({
method: "GET",
path: `/invites/${line}?with_counts=1`,