Skip to content

TrackRunny/LinuxBoi-JDA-Rewrite

Repository files navigation

→ LinuxBoi - JDA Rewrite

OpenJDK Versions JDA Version License: GPL v3

➤ Important Information

  • Rewrite for my LinuxBoi Python bot in Java
  • Created this bot to learn the basics of the JDA library
  • Not all commands will be re-wrote into Java code
  • Adding new commands or features every couple of days or so when I have free time.

➤ Modules

  • Information
  • Moderation / Admin
  • Utility
  • Fun
  • Meme
  • Image
  • Owner

➤ Install and Setting up The Bot

To start, make sure you have OpenJDK 8 or 11 installed on your computer. Then follow the instructions below.

  • First, clone the repository and change directories into it.
git clone https://github.com/TrackRunny/LinuxBoi-JDA-Rewrite.git
<!-- Cloning the repo -->

cd LinuxBoi-JDA-Rewrite
<!-- Changing directories -->
  • Next, use gradle to build a compiled jar file of the bot.
./gradlew shadowJar
<!-- Use this if you are on Mac OS X or Linux -->

gradlew.bat shadowJar
<!-- Use this if you are on Windows -->
  • Congratulations, you now have a compiled jar file located in build/libs directory for you to access.

➤ Setting enviroment variables

Please make sure you create a .env file in the root directory where the jar file is being ran. It should have these values.

TOKEN="YOUR DISCORD BOT TOKEN"
IP_INFO_TOKEN="YOUR IP INFO TOKEN"
KSOFT_TOKEN="YOUR KSOFT TOKEN"
OWNER_ID=YOUR OWNER ID
PREFIX="j!"

Everything is now set up. To start the bot you can do java -jar JDA-LearningBot-1.42.10-all.jar or you may want to create a shell or bat script to do this for you.

➤ License

This project is licensed under the GPLv3.

➤ Questions / Contact me

  • Discord Account: TrackRunny#2503