nvm
This commit is contained in:
parent
28b6201a3a
commit
2171b25dd6
5
index.js
5
index.js
|
@ -56,11 +56,6 @@ global.log = log;
|
||||||
|
|
||||||
client.on('ready', async () => {
|
client.on('ready', async () => {
|
||||||
log.success(`Logged in as ${client.user.displayName}`);
|
log.success(`Logged in as ${client.user.displayName}`);
|
||||||
await client.setStatus("dnd");
|
|
||||||
await client.setActivity({
|
|
||||||
type: Discord.ActivityType.Custom,
|
|
||||||
name: "Just chillin"
|
|
||||||
})
|
|
||||||
const commands = require("./commands")
|
const commands = require("./commands")
|
||||||
// Command registration
|
// Command registration
|
||||||
log.info("Registering commands...")
|
log.info("Registering commands...")
|
||||||
|
|
|
@ -53,11 +53,6 @@ module.exports.execute = async (interaction) => {
|
||||||
break;
|
break;
|
||||||
case 'reboot': // Run `reboot 0`
|
case 'reboot': // Run `reboot 0`
|
||||||
await interaction.reply({ content: "Rebooting...", ephemeral: true });
|
await interaction.reply({ content: "Rebooting...", ephemeral: true });
|
||||||
await client.setStatus("dnd");
|
|
||||||
await client.setActivity({
|
|
||||||
type: Discord.ActivityType.Custom,
|
|
||||||
name: "Server Rebooting..."
|
|
||||||
})
|
|
||||||
await client.destroy();
|
await client.destroy();
|
||||||
log.info('Client destroyed.');
|
log.info('Client destroyed.');
|
||||||
pool.end((err) => {
|
pool.end((err) => {
|
||||||
|
|
Loading…
Reference in a new issue