Skip to content

SpartaDevTeam/SpartaBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpartaBot

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.

How to run

  1. Install Python 3.10 or newer. Then install the dependencies in requirements.txt normally and requirements_no_deps.txt with pip's --no-deps flag. The install_deps.sh script does exactly this and was made for convenience.
  2. 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.
  3. Run the command alembic upgrade head to run database migrations.
  4. Run python run.py to start the bot. You can run the command with --debug flag to run in debug mode.

Links

  1. Sparta
  2. Sparta Beta
  3. Top.gg
  4. Bots for Discord
  5. Support Server

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages