Dayong
Dayong is dedicated to helping Discord servers build and manage their communities.
- Multipurpose —lots of features, lots of automation.
- Self-hosted and easy to deploy —just a few more steps to take.
- Free and open-source —tinker with it, and feel free to contribute to its improvement!
- Modular —easily add extensions and features.
- Written in Python —beautiful syntax and supports rapid development.
Installation
Download the source code:
git clone https://github.com/SurPathHub/Dayong.git
Bot Account Setup
Follow the instructions here: https://discordpy.readthedocs.io/en/stable/discord.html
Project Setup
-
Go to the project root directory.
cd Dayong -
Create a copy of
.env.example. Don't forget to omit the.exampleat the end.On Linux and Unix
cp .env.example .envOn Windows
copy .env.example .env -
Edit the
.envfile and add your credentials to the corresponding variables. -
Install poetry. Check if poetry is installed by running
poetry --version. -
Run
poetry shell. This will create or start the virtual environment. -
Run
poetry install. This will install the project and its dependencies.
Usage
-
From the project root directory, run:
python dayong -
Open your Discord application. Go to the server where you invited the bot and run
[your command prefix]help. For instance:.helpor!help. The dot prefix is the default.
Welcome Message for New Member
- Modify the welcome message by changing the value(s) of the following in
Dayong\dayong\embeddings.json."greetings_channel":"<channel name where the greetings will be prompted>", "readme_channel_id": <id of the channel you want to tag>, "description": "<your greetings>", "color": <integer value of the color you want to use> "greetings_field": { "<n>": { "name": "field's name" "value": "field's value" } , ... }
You can have as many as
greetings_fields you want. However, make sure that its inner key(s) is an integer (starting with 0) since it will be used inside aforloop.
