Discord bot kill switch

So basically I want my bot to not respond to anything (Or just go offline) just by typing a command. But I have no idea how to make that. Anyone could help?

Can you try process.exit()?

I tried something but it won’t go offline


const Discord = require(“discord.js”);
const bot = new Discord.Client();
module.exports = {
config: {
name: “killswitch”,
category: “moderation”,
description: “Shutdown The Bot!”,
accessableby: “Administrator”,
usage: " ",
aliases: [“ks”],

run: async (bot, message, args) => {
let owner = ‘618568224463650834’

   if (!owner.includes(message.author.id)) return;

 await message.channel.send("Shutdown...")