Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

lucasstarsz/Java-Discord-Bot-Template

Repository files navigation

Java Discord Bot Template

A super simple discord bot template made using JDA and the Gradle build tool.

Where's the code?

The code can be found in src/main/java/org/botexample.

What do I need to provide?

Nothing more than a discord bot token.

Building and Running

  • Clone the repository from Github.
    git clone https://github.com/lucasstarsz/Java-Discord-Bot-Template.git
  • Enter the project's directory.
    cd Java-Discord-Bot-Template/
  • Build the project.
    ./gradlew clean build
  • Run the project, using your discord bot token.
    ./gradlew run --args "your discord bot token here"

Having issues using gradlew? Read this.

What does this template do?

This template does the following:

  • Displays a "ready for takeoff" message on the ready event.
  • Prints out a chatter's message every time they speak in a channel visible to the bot.
  • Prints out a chatter's message every time they Direct Message (DM) the bot.

For more information on how to use JDA, check out their github repository.

About

A super simple java Discord bot template using JDA.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

AltStyle によって変換されたページ (->オリジナル) /