This Discord bot, developed using Java and Maven, offers various commands, including fetching memes, jokes, and additional functionalities.
- Meme Command: Use
/meme
to retrieve programming-related memes. - Joke Command: Employ
/joke
to fetch dad jokes. - Other Commands: Includes features like todo lists, rule display, and more.
-
Clone the Repository:
git clone https://github.com/your-username/discord-bot.git cd discord-bot
-
Environment Setup:
- Create a
.env
file in the root directory. - Define necessary environment variables in the
.env
file:DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN_HERE RAPID_API_KEY=YOUR_RAPID_API_KEY_HERE
- Create a
-
Building and Running:
Use Maven to build the project and run the bot:
mvn clean install java -jar target/discord-bot.jar
-
Command Usage:
/meme
: Fetches programming-related memes./joke
: Retrieves dad jokes./rules
: Displays server rules./hello
: Greets the user./todo
: Allows the user to create a to-do list./help
: Provides information and instructions about bot commands.
- JDA (Java Discord API)
- OkHttp for making HTTP requests.
- dotenv-java for handling environment variables.
- Other dependencies mentioned in the
pom.xml
file.