Moderation bot for r/Jailbreak
- Python
poetry
pyenv
- MongoDB server
pyenv install 3.9.0
pyenv shell
poetry install
(use flag--no-dev
for prod)poetry shell
- Create a file called
.env
. in the root of the project and define the following:
BOTTY_TOKEN = "DISCORD TOKEN"
BOTTY_OWNER = OWNER ID (int)
BOTTY_MAINGUILD = MAIN GUILD ID (int)
BOTTY_NSAGUILD = NSA GUILD ID (int)
LAVALINK_PASS = "yourpasswwordhere"
-- you only need BOTTY_ENV if using locally
BOTTY_ENV = "DEVELOPMENT"
- Download the latest version of the Lavalink jar file from here, and put it in the root of the project
- Set up the
application.yml
as shown in the example here, also in the root of the project. Use the same password as in the.env
file. You need not change anything else. - Run Lavalink with
java -jar Lavalink.jar
- Set up mongodb on your system
python main.py
- if everything was set up properly you're good to go!
If you aren't porting from Janet, you don't have any baseline data for the bot to work. I wrote a short script setup.py
which you should fill in with data from your own server, then run python setup.py