Skip to content

The placeholder Discord bot that's not so placeholder any more

License

Notifications You must be signed in to change notification settings

lorentzforces/tempbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TempBot

A basic Discord bot

TempBot was originally created as a temperature-conversion bot. As time goes on, more memes features will be added.

The main code entry point is in Bot.java.

This project uses hard tabs. You can adjust the visual tab size in Github's web UI by appending ?ts=4 to the URL of the file you are viewing.

Building the Project

Requirements:

  • an internet connection to download dependencies (only on first build or when dependencies have changed)
  • Java 21 executables available to Gradle

To build the project without running it, you can run the following command:

./gradlew clean build

The output is a single file named tempbot.jar in the project's root directory and includes all dependencies.

The logging level is by default set to its more-verbose DEV mode and directs to standard output. You may check the code for alternative options, but for development the default options in the example configuration file are probably what you want.

Running the project

You can run the project via gradle using the following command:

./gradlew run

Because of how Gradle incremental builds work, this will first compile any changed files before running.

At the most basic level, running the project requires running java -jar <path-to-output-jar> in a directory with a valid client.yml file. All configuration is contained within client.yml; there is no need to set any environment variables or system properties.

An example client.yml is provided in the root directory of this project. You will need to fill in the relevant fields with valid cliendId and secret values for a valid Discord application. Discord's application dashboard can be found here.

Running Tests

You can run all tests with the following command:

./gradlew test

About

The placeholder Discord bot that's not so placeholder any more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages