Discord Bot Privacy Management
A simple Discord bot management package that allows bot owners to toggle their bot's privacy status (private/public) using a slash command. This package is designed to work with all versions of Discord.js and supports multiple bots by storing each bot's privacy status in a local JSON file.
Features
-
Toggle Privacy: Easily switch your bot between private and public modes.
-
Multiple Bots Support: Manage privacy settings for multiple bots independently.
-
Automatic Setup: The package automatically sets up the required commands and starts the bot when imported.
-
Persistent Data Storage: Stores each bot's privacy status in a
privacyData.json file without the need for external databases like MongoDB.
Installation and Usage
Follow these steps to install, set up, and run your bot using this package.
1.
Install the package:
``
bash
npm i discord-bot-privacy
2. Create env file in your code:
`
bash
BOT_TOKEN=your-discord-bot-token
CLIENT_ID=your-discord-client-id
OWNER_ID=your-discord-user-id
3. Add in main file:
``bash
const botPrivacy = require('discord-bot-privacy');
try {
botPrivacy.start();
} catch (error) {
console.error('Failed to start the Discord Bot Privacy Management:', error);
}
Join Discord Server For Help
-
Arbotix Development
-
Arbotix Codez
Credit To Me
- [HJGAMING]
- [ARBOTIX CODEZ]
- [ARBOTIX DEVELOPMENT]