A fun Discord bot built with Java and JDA. Add it to your server
What things you will need to run the software
Java 11, MySql Server, Gradle
You need to install the following dependencies:
Java 11
, MySql Server
, zip
, unzip
and gradle
# Install java
sudo apt install openjdk-11-jdk
# Install mysql
sudo apt install mysql-server
# Install zip and unzip
sudo apt install unzip zip
# Install gradle
wget https://services.gradle.org/distributions/gradle-6.3-bin.zip
sudo mkdir /opt/gradle
sudo unzip -d /opt/gradle gradle-6.3-bin.zip
export PATH=$PATH:/opt/gradle/gradle-6.3/bin
Add environment variables:
MYSQL_USER=your_user
MYSQL_PASS=your_pass
BOT_TOKEN=TOKEN
GIPHY_TOKEN=TOKEN
TRN_TOKEN=TOKEN
CLEVER_TOKEN=TOKEN
Or change the application.yml
file
dodo-bot:
token: ${BOT_TOKEN:TOKEN}
giphy-token: ${GIPHY_TOKEN:TOKEN}
trn-token: ${TRN_TOKEN:TOKEN}
clever-token: ${CLEVER_TOKEN:TOKEN}
Than run SQL scripts:
sudo mysql -u root < Database/init.sql
and build the project and run it with:
#build the project
gradle build -x test
#run the bot
gradle bootRun
prefix + command
For the list of all commands type !help