Skip to content
/ JDA-Template-Bot Public template

Helpful template for creating Discord bots in Java with JDA. Includes a basic "Hello World" command and login with token as environment variable.

Notifications You must be signed in to change notification settings

SirBlobman/JDA-Template-Bot

Repository files navigation

JDA Template Bot

Compilation Instructions

  1. Run ./gradlew clean build or gradlew.bat clean build depending on your OS.
  2. Find the distribution files in build/distributions/JDA-Template-Bot-version.tar.gz

How to run?

  1. Extract the tar.gz file to a folder or server,
  2. Create a script to run the bot. The environment variable DISCORD_BOT_TOKEN must be set to your bot token.

Example Script (Bash):

#!/usr/bin/env bash

echo "Loading bot..."
export DISCORD_BOT_TOKEN="<token>"

java -Xmx1G -jar "target/JDA-Template-Bot-1.0.0.jar"
exit
  1. Execute the script.

About

Helpful template for creating Discord bots in Java with JDA. Includes a basic "Hello World" command and login with token as environment variable.

Resources

Stars

Watchers

Forks

Languages