Code Monkey home page Code Monkey logo

confusing-bot's Introduction

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

confusing-bot's People

Contributors

bennobuilder avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.