/HelpThreadBot

A bot for managing help threads on Discord

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

HelpThreadBot

A bot for managing help threads on Discord.

As used on the Raspberry Pi Discord - Discord.gg/RaspberryPie



Requirements

Java 17
<Gradle 7.3.1
JDA 5.0.0-alpha.5
MariaDB/MySQL Server

Building

This is as simple as could be. Run: `./gradlew uberJar` The built file will be in `.\build\libs\HelpThreadBot-x.x.x-uber.jar`

Running

Simply run the file and it will create a `config.json` file for you. `java -jar HelpThreadBot-x.x.x.-uber.jar`

Configuration

This bot is designed to be as configurable as possible without a modifying the code. Upon generating a config file you will be greeted with
{
 "db_name": "HelpThreadBot",
 "faq_link": "FAQ LINK HERE",
 "db_user": "root",
 "manager_role_id": "ROLE ID",
 "db_port": "3306",
 "db_pass": "password",
 "guildid": "GUILDID HERE",
 "db_hostname": "127.0.0.1",
 "channelid": "CHANNEL ID HERE",
 "token": "DISCORD TOKEN HERE"
}

db_name - Name of database in MariaDB/MySQL

faq_link - Link to FAQ message in Discord (Optional)

db_user - Username to access database server

manager_role_id - Role ID of trusted members that are allowed to close other peoples' threads (Optional)

db_port - Port of your database server

db_pass - Password of your database server

guildid - Id of the Discord Guild you're using the bot in

db_hostname - Hostname/IP of your database server

channel_id - Channel for your help threads

token - Discord token for the bot`

Todo

I'd say I plan on writing better docs/readme but we both know that isn't going to happen...