Skip to content

This is the bot used on the Javacord server.

License

Notifications You must be signed in to change notification settings

Javacord/Javacord-Bot

Folders and files

NameName
Last commit message
Last commit date
Apr 27, 2022
Oct 31, 2018
Mar 16, 2023
Mar 16, 2023
Apr 27, 2022
Apr 27, 2022
Jul 23, 2018
Apr 27, 2022
Oct 11, 2022
Oct 9, 2022
Oct 9, 2022
Oct 9, 2022
Oct 9, 2022

Repository files navigation

Javacord Bot

This is the bot used on the Javacord server.

I just want to use Javacord :-(

In this case you are wrong here. Just head over to the Javacord repository.

What's the difference to the example bot

The example bot is exactly what its name suggests: A bot which is solely used as an example for Javacord. It tries to cover some basic concepts to give you an idea how a bot using Javacord may look like. It is kept simple and has very verbose comments.

This bot however is actually used on our Discord Server and thus may contain a lot of specific features which are most likely not relevant to you. Simplicity also is not a goal for this bot, but you can still use this bot as a reference if you want to.

How to build it

To build a distribution archive execute ./gradlew distTar or ./gradlew distZip.

How to run it ...

... locally

  • execute ./gradlew installDist
  • (optional) store your discord api token in a text file
  • execute build/install/javacord-bot/bin/javacord-bot <token> or build/install/javacord-bot/bin/javacord-bot <path to the file with the token>

... manually

  • copy the built distribution archive from build/distributions/ to the system where you want to run it
  • unpack the archive somewhere
  • (optional) store your discord api token in a text file
  • execute javacord-bot/bin/javacord-bot <token> or javacord-bot/bin/javacord-bot <path to the file with the token>

... with Docker

  • build the Dockerfile with docker build .
  • run the generated image. The token has to be provided with the DISCORD_TOKEN environment variable