A complete rewrite from scratch of the Original Sparta Bot, using better technologies. Moderation, automod, welcome and leave message, reaction roles, fun commands, etc., just some of the stuff that Sparta Bot offers.
- Install Python 3.10 or newer. Then install the dependencies in
requirements.txt
normally andrequirements_no_deps.txt
with pip's--no-deps
flag. Theinstall_deps.sh
script does exactly this and was made for convenience. - Add the following environment variables to a
.env
file in the root directory:TOKEN
- Your Discord Bot Token.URBAN_API_KEY
- API key for accessing Urban Dictionary's API.DBL_TOKEN
- Top.gg bot token for receiving vote data.TESTING_GUILDS
(Optional) - Comma (,) separated string of guild IDs for testing/
commands. Only applicable when running with--debug
flag.DB_URI
- URI string of your database. You may have to install additional modules if you're using something other than PostgreSQL.LAVALINK_HOST
- Host address where you're hosting your Lavalink server.LAVALINK_PORT
- Port on which you're hosting your Lavalink server.LAVALINK_PASSWORD
- Password to connect to your Lavalink server.
- Run the command
alembic upgrade head
to run database migrations. - Run
python run.py
to start the bot. You can run the command with--debug
flag to run in debug mode.