Welcome to the ähm Discord Bot! This bot is designed to provide various functionalities for managing and displaying quotes within Discord servers.
To get started with the bot, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/MrSchneemann/aehm.git
- Install dependencies:
cd aehm
npm install
-
Set up environment variables:
Create a
.env
file in the root directory of the project and add the following environment variables:TOKEN=your-discord-bot-token CLIENT_ID=your-discord-client-id GUILD_ID=your-discord-guild-id MONGODB_URI=your-mongodb-connection-uri MONGODB_DBNAME=your-mongodb-database-name ALLOWED_USER_ID=your-discord-user-id
- Note:
ALLOWED_USER_ID
is the Discord User ID of the Admin user who can execute certain commands. - Make sure to replace the placeholders with your actual values.
- Note:
-
Deploy commands:
node deploy-commands.js
This command will deploy the bot's slash commands to your Discord server.
- Run the bot:
node index.js
The bot should now be up and running in your Discord server!
/setup
This command initializes the bot. Only authorized users can execute this command.
/setupchannel
This command sets up the channel where new Zitate will be automatically added to the database. Only authorized users can execute this command.
/import
This command imports quotes from a specified channel into the bot's database. Only authorized users can execute this command.
/zitat
This command responds with a random quote. It fetches quotes from the configured channel and displays them in an embed.
The bot handles various events, such as message updates, deletions, and interactions. These events are essential for maintaining the bot's functionality and providing a seamless user experience.
Contributions are welcome! If you have any suggestions, bug fixes, or new features to add, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.