Moderation bot for r/Jailbreak
Note: the setup instructions assume you're using macOS or a Linux based distro. I have not tested on Windows, but I assume it would work with some effort.
- Python
poetry
pyenv
- MongoDB server
- Spotify developer account
If you want to use the !canijailbreak
(!cij
) command, you will need to request an API key from the developer of canijailbreak2.com
pyenv install 3.9.1
pyenv shell 3.9.1
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)
LAVALINK_PASS = "yourpasswwordhere"
SPOTIFY_CLIENT_ID = "YOUR SPOTIFY CLIENT ID"
SPOTIFY_CLIENT_SECRET" = "YOUR SPOTIFY SECRET"
# the below is for the canijailbreak command
CIJ_KEY = "CIJ TOKEN"
- 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 (and see First time use to populate the database with initial data)
- Run
python scrape_emojis.py
. This will pull emoji data needed for!jumbo
. You only need to do this once (or any time you want to update the list of emojis). 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