status: use custom status now that bots can use state

This commit is contained in:
Cynthia Foxwell 2023-08-08 22:51:53 -06:00
parent 932d24d6a4
commit ffa23ed68f

View file

@ -1,4 +1,4 @@
const statuses = [
/*const statuses = [
{type: 0, text: "on %servers% servers"},
{type: 0, text: "with %users% users"},
{type: 0, text: "with %commands% commands"},
@ -17,7 +17,17 @@ function setStatus() {
name: `${text} | ${hf.config.prefix}help`,
},
]);
}*/
function setStatus() {
hf.bot.editStatus("online", [
{
type: 4,
name: "HiddenPhox",
state: `${hf.config.prefix}help`,
},
]);
}
hf.bot.once("ready", setStatus);
hf.timer.add("status", setStatus, 300000);
//hf.timer.add("status", setStatus, 300000);