Follow the instructions here: https://discordpy.readthedocs.io/en/stable/discord.html
| ❗❗ Before you start, fork your own copy of SurPathHub/Dayong. |
|---|
| ❗❗ You can also perform the steps below directly on your copy of Dayong on GitHub |
|---|
| ❗❗ Your copy of the GitHub repository can be used to deploy changes automatically. |
|---|
-
Clone your fork to your local machine.
HTTP
git clone https://github.com/<your username>/Dayong.gitSSH
git clone git@github.com:<your username>/Dayong.gitGitHub CLI
gh repo clone <your username>/Dayong.git -
Go to the project root directory.
cd Dayong -
Edit the
config.jsonfile and its values as necessary.The
config.jsonfile stores public options, settings, properties, configuration, and preferences. -
After setting up Dayong,
commitandpushyour changes.
-
git cloneDayong to your local machine. -
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. -
Edit the
config.jsonfile and its values as necessary.The
config.jsonfile stores public options, settings, properties, configuration, and preferences. -
Quickly test if the configuration works by running:
python dayong -
After setting up Dayong,
git commitandgit pushyour changes.