If you want to have a copy of ;;
for yourself to run on your own server,
it's recommended you download a stable release, see for example the
latest release.
If you'd rather have the latest update, no matter the possible bugs, and you like to tinker around and play with the new stuff, you'll prefer the direct Github link, aka dev version.
- Python 3.6 (a virtual environment is recommended)
- PIP for Python
- A Discord account and a Discord bot token
If you are using Microsoft Windows,
;;
should work but there is no active effort towards the support of it. Reported issues will be taken care of, but with a low priority level.
To get the source code, you can either download it from Github or use
git
to clone it locally (this is the recommended way).
- Download the latest stable build (just click the "Download ZIP" button)
- Download the latest source code
- Clone a specific version:
git clone --branch v0.1.0 https://github.com/Zeroji/semicolon.git
- Clone the latest version:
git clone https://github.com/Zeroji/semicolon.git
Start by navigating to the directory where you downloaded the source code.
Install the required Python packages:
pip install -r requirements
You'll need to create a data
folder to store some required information.
You can edit the
config.yaml
file to change all the paths, folder and file names listed in this section. If you are on Windows, make sure you don't accidentally save files asfile.txt
instead of justfile
.
Inside the data
folder, create the following folder and files:
-
The
secret
folder will contain your bot token, and should contain your API keys & related data, if any. -
Write your bot token into the
token
file inside thesecret
folder -
Write your own Discord user ID (Snowflake) inside the
master
file -
If you want people to have admin rights over
;;
, put their IDs in theadmin
file, separated by newlines. Your own ID should be in there. -
If you want
;;
to completely ignore some users, put their IDs in thebanned
file, separated by newlines.
Assuming you have done everything correctly, you should be able to run the
bot by simply typing python core.py
from the semicolon
folder.
If you are on a standard Linux system, with a proper Python install, you can
simply type ./core.py
to run it.
Depending on your computer and Internet connection, it might take up to 15 or 20 seconds to start the bot, if it takes longer you can check the log file and look for errors.