Skip to content
/ Spark Public
forked from Maveo/Spark

A little Discord companion for your server. πŸ€–

License

Notifications You must be signed in to change notification settings

skillor/Spark

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

- Spark -

Build Status

A Discord Bot

alt text

Application

Spark is currently being beta-tested on the StudeGaming Discord Server and continues to be enhanced by his developer skillor. If you are interested in Sparks development, you can view the project roadmap and history in the Projects tab. If you have any suggestions or bug reports and want to help in the development process, you are welcome to let us know in the Issues tab. Spark is currently not publicly available, so can't be easily invited to your Discord server. Should you still want to use Spark on your Discord server, feel free to use its source code to host it yourself.

Installation

Setup in Windows

Clone repository

git clone https://github.com/skillor/Spark.git

Install requirements

python -m pip install -r requirements.txt

Copy "settings_example.py" to "settings.py"

copy settings_example.py settings.py

Edit your "APPLICATION_ID", "TOKEN" etc. in the settings.py

Run tests

python tests.py

Start bot and webserver

python -m uvicorn main:app --port 4004

Start only the bot

python bot.py

Setup in Unix

Clone repository

git clone https://github.com/skillor/Spark.git

Install requirements

pip3 install -r requirements.txt

Copy "settings_example.py" to "settings.py"

cp settings_example.py settings.py

Edit your "APPLICATION_ID", "TOKEN" etc. in the settings

Run tests

python3 tests.py

Start bot and webserver

python3 -m uvicorn main:app --port 4004

Start only the bot

python3 bot.py

Module System

Spark consists of numerous modules which can be activated per Guild. Use /module activate to activate a module. These modules contain their respective commands and settings.

Configurable Settings

Global Settings

These settings are applied globally and cannot be changed without restarting the application.

  • DATABASE_URL

    The url for the database of Spark (e.g. mongodb://example.com:27017/).

  • APPLICATION_ID

    This is the Application-ID for your Discord Developer Application.

  • APPLICATION_SECRET

    This is the Oauth2-Application-Secret for your Discord Developer Application.

  • OAUTH2_REDIRECT_URI

    This is the Oauth2-Redirect-Uri for your Discord Developer Application, you need to add "/login" for the default setup (e.g. http://your.domain/login). You also need to set this up in the Discord Developer Settings.

  • WEBSERVER_SECRET

    A secret to encrypt the webserver sessions.

  • TOKEN

    This is the Token of your Discord Bot.

  • INTERVAL_TIME

    The interval in which the modules do their scheduled update (in seconds | use -1 for no update interval).

  • DOWNLOAD_EMOJIS

    If emojis should be acquired from emojipedia.

  • SAVE_EMOJIS

    If the downloaded emojis should be saved locally.

  • EMOJIS_PATH

    The path to load and save emojis.

Module Settings

Every module can have own settings which are applied for each Discord guild (server) and can be changed via the settings command.

Features

Spark has an evergrowing utility set with numerous advanced features:

  • Modular

    Spark is highly modular

  • Frontend

    Spark has an own frontend, yay

  • Level System

    The level system tracks users voice-channel and chat activity on the server and rewards them with XP, which enables users to get levels. Server admins are then able to create ranks on certain level targets using the /lvlsys set {level target} {role-id} command and assign roles, that will automatically be given to users hitting the stated level target (rank). All parameters like the rate at which users gain XP can be edited in the source code. Furthermore, admins can change users levels and XP-multipliers, aswell as blacklisting users from gaining XP using /lvlsys chat commands.

  • Promotion Codes

    Users have to ability to provide new users with a promo code, which rewards the new user with a configurable level headstart and to old user with a temporary configurable xp-multiplier

  • Custom Bot Responses

    When a user attempts to use a command without the permission to do so, the bot will deny the interaction and jokingly inform the user with one of 13 different custom text messages. The same will happen when a user executes an unknown command.

  • Advanced Command Interaction

    Spark is able to communicate through Discords slash command integration, which offers a more polished user experience and will help to keep your chat cleaner. Additionally, Spark can handle user related commands with @mentions.

  • Custom Image Generation (ImageStack)

    The Bot is equipped with ImageStack-SVG (a custom image generator), which will create custom levelup, rankup, leaderboard and profile-card images. All images can be designed using ImageStack-SVG Code.

About

A little Discord companion for your server. πŸ€–

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.5%
  • Vue 28.2%
  • CSS 6.2%
  • TypeScript 4.8%
  • HTML 0.1%
  • JavaScript 0.1%
  • Other 0.1%