Bot owner only commands
const { CommandType } = require("wokcommands");
const setStatus = (client, status) => {
client.user?.setPresence({
status: "online",
activities: [
{
name: status,
type: ActivityType.Playing,
},
],
});
};
module.exports = {
description: "Sets the bot's status",
type: CommandType.BOTH,
minArgs: 1,
expectedArgs: "<status>",
ownerOnly: true,
callback: ({ client, text }) => {
setStatus(client, text);
return {
content: `Set status to "${text}"`,
};
},
};Last updated