Discord bot for hosting imgur links in categories and sub-categories of your desire.
- MySQL (or another SQL database supported by Kotlin Exposed)
- Java installed
Once MySQL is installed, you must create the database that Joy will use which can be done as follows:
CREATE DATABASE Joy;
- Clone this repository to a directory, this directory will henceforth be known as
<JOY_ROOT>
. - Run
./gradlew setupProperties
and follow instructions to enter Discord and database information. This createsmisc.properties
that lives in<JOY_ROOT>/joybot/src/main/resources/
.- Note: The only current driver included in the Gradle dependencies is MySQL, if you need another driver you may need to add a dependency for it.
- Discord IDs can be obtained as described here.
- (Optional) Run
./gradlew createDatabase
this will use the information inmisc.properties
from 2 to create all the required tables. - (Very Optional) Download the Gecko driver into
<JOY_ROOT>/joybot/libs/
- Only tested and verified on Windows and Mac, additional effort must be made for other operating systems.
- Verified working with Gecko driver version 0.31.0.
- (Very Optional) Run
./gradlew populateDatabase
to seed the database with groups and members from a website of your choice.- Since this relies on web scraping this may not be reliable.
./gradlew run