discord-bot-privacy
v1.2.2
Published
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 p
Downloads
40
Maintainers
Readme
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.
Install the package:
npm i discord-bot-privacy
Create env file in your code:
BOT_TOKEN=your-discord-bot-token CLIENT_ID=your-discord-client-id OWNER_ID=your-discord-user-id
Add in main file:
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
Credit To Me
- [HJGAMING]
- [ARBOTIX CODEZ]
- [ARBOTIX DEVELOPMENT]