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.txtnormally andrequirements_no_deps.txtwith pip's--no-depsflag. Theinstall_deps.shscript does exactly this and was made for convenience. - Add the following environment variables to a
.envfile 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--debugflag.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 headto run database migrations. - Run
python run.pyto start the bot. You can run the command with--debugflag to run in debug mode.