A4 Discord Bot is a multifunctional bot with powerful features like moderation, automatic link embedding, bot status management, Quote of the Day (QOTD), and more.
adzan
- View prayer times for a specific location worldwide.help
- Display a list of all commands.info
- Show information about this bot.ping
- Display bot latency and Discord API response time.qotd
- Request a Quote of the Day (QOTD) from the bot.say
- Send a custom message through the bot.
ban
- Ban a user from the server.kick
- Remove a user from the server.mute
- Mute a user.purge
- Delete a specified number of messages in the current channel.purge after
- Delete messages after a specific message.restart
- Restart the bot.set status
- Change the bot's status.set activity
- Change the bot's activity.timeout
- Temporarily restrict a user's interaction.toggle embed
- Enable or disable automatic embed detection.toggle ai
- Enable or disable the AI feature.unban
- Remove a ban from a specific user.unmute
- Remove mute from a user.untimeout
- Remove timeout from a user.
- Automatic embedding for links from supported platforms such as Instagram, TikTok, X, Reddit, and more.
- Scheduled automatic QOTD (Quote of the Day) posting.
- Node.js: v18 or newer
- NPM: v9 or newer
-
Clone this repository:
git clone https://github.com/iseeface/personal-bot-discord.git cd personal-bot-discord
-
Install dependencies:
npm install
-
Configure environment variables:
- Fill in the
.env
file according to the instructions provided in.env.txt
. - Rename
.env.txt
to.env
after filling in the required values.
- Fill in the
-
Run the bot:
node bot.js
-
Register Slash Commands to Discord: Run the following command to register slash commands with Discord:
node registerCommands.js
-
Delete All Slash Commands from Discord: If needed, you can remove all registered commands:
node deleteCommands.js
discord.js
- Main library for interacting with the Discord API.axios
- Used for fetching data from APIs.dotenv
- For managing environment variables.moment-timezone
- Handles timezone adjustments for QOTD scheduling.ms
- Converts time duration into human-readable format.node-cron
- Schedules automated tasks.
Contributions are welcome! If you'd like to improve the bot, feel free to submit a pull request or open an issue to report bugs.
- Fork this repository.
- Create a new branch for your changes.
- Push your changes to your branch.
- Submit a pull request to the main repository.
This repository is licensed under the MIT License.