An open source Discord bot for the Avatar Minecraft mod server.
Join us on Discord »
Report Bug
·
Request Feature
Table of Contents
The Library of Wan Shi Tong is a Discord bot for the Avatar Minecraft mod server. It is a work in progress and is currently in the alpha stage of development. The bot is written in Kotlin using the JDA library. The purpose of the bot is to provide a variety of useful features for the server, such as an easy ticket system, and more features yet to be decided.
While there are a variety of bots that provide the same features as the Library of Wan Shi Tong, we decided to make our own bot for a few reasons:
- Customization: We wanted to be able to customize the bot to our needs, and not be limited by the features of other bots.
- Learning: We wanted to learn how to use Kotlin, and this seemed like a good opportunity to do so.
- Fun: We wanted to make a bot that we could use on our own server, and that we could share with others.
- Open Source: We wanted to make the bot open source since that is one of our core values, so that others can contribute to it, and learn from it.
- Community: We wanted to make a bot that would be useful for our community, and that would help us grow as a community.
This guide is not yet finalised and may not be complete. It is also not yet tested.
Before you begin, ensure you have met the following requirements:
- Java 18
-
To check if you have Java installed, run the following command:
java -version
It should return a version number, such as 18.0.1. Ensure that the version number is 18 or higher.
-
-
Clone the repo
git clone https://github.com/amuzil/lwst.git
-
Run the bot to generate the config file
./gradlew run
-
Add your bot token to the config file
- Follow the JDA getting started guide up to step 1 of "Connecting to Discord with a Bot Account".
- Open the
config.json
file- On Linux, it will be located in
XDG_CONFIG_HOME/LWST/configuration.yml
- If
XDG_CONFIG_HOME
is not set, it will be located in~/.config/LWST/configuration.yml
- If
- On Windows, it will be located in
%APPDATA%\LWST\configuration.yml
- On macOS, it will be located in
~/Library/Application Support/LWST/configuration.yml
- On other operating systems, it will be located in
~/.config/LWST/configuration.yml
- On Linux, it will be located in
- Replace the value of the
token
key with your bot token - Save the file
-
Run the bot
./gradlew run
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. If you really like the project, consider giving it a star!
Something we like to use it Gitmoji, which is an emoji guide for Git commit messages. It makes it easier to see what kind of changes have been made at a glance. While not required, we heavily recommend using it.
To make things easier, check out Gitmoji Plus: Commit Button, a plugin for JetBrains IDEs that adds a button to the commit dialog that allows you to easily add a Gitmoji to your commit message.
While the below guide details specific git
commands, you also can (and probably should) use a GUI for Git.
Options include any JetBrains IDE (such as IntelliJ IDEA), GitHub Desktop, or GitKraken.
-
Fork the Project
-
Create your Feature Branch
git checkout -b feature/AmazingFeature
-
Commit your Changes
git commit -m ":sparkles: Add some AmazingFeature"
-
Push to the Branch
git push origin feature/AmazingFeature
-
Open a Pull Request
Distributed under the Unlicense. See license.md
for more information.
Main contact: Luka "Mahtaran" Leer