Skip to content

🤖 This Bot might be confusing, but it has many useful features which bring your server to the next level and simplify the daily life on it!

Notifications You must be signed in to change notification settings

bennobuilder/confusing-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConfusingBot

🤖 This Bot might be Confusing but this bot has many useful features.. which upgrade your server and simplify the daily life on it!
Note: This Bot isn't supported anymore and the code is pretty dirty since I learned with it the main concepts of Java!

Setup

.env.local

DISCORD_TOKEN={DISCORD_TOKEN}
TOP_GG_TOKEN={TOP_GG_TOKEN}
# confusing-db is an internal reference to the 'db' container (https://stackoverflow.com/questions/50927680/how-to-access-postgres-docker-container-other-docker-container-without-ip-addres)
DB_URI=postgresql://confusing-db:5401/confusing_bot
DB_USERNAME=postgres
DB_PASSWORD=postgres

Build

  • Run mvn -DskipTests clean dependency:list install to build the ConfusingBot with dependencies
  • Run java -jar target/ConfusingBot-[YOUR_VERSION]-jar-with-dependencies.jar to execute the ConfusingBot
  • Install the Heroku CLI and add it to the environment variables
  • Run mvn clean compile assembly:single heroku:deploy to deploy the ConfusingBot to Heroku
  • Run heroku logs --app confusing-bot to see the logs

Heroku

Commands that Heroku executes to execute the Java Project:

  • Build mvn -DskipTests clean dependency:list install
  • Start defined in Procfile

Connect to psql database

heroku pg:psql --app confusing-bot

About

🤖 This Bot might be confusing, but it has many useful features which bring your server to the next level and simplify the daily life on it!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published