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.git
SSH
git clone [email protected]:<your username>/Dayong.git
GitHub CLI
gh repo clone <your username>/Dayong.git
-
Go to the project root directory.
cd Dayong
-
Edit the
config.json
file and its values as necessary.The
config.json
file stores public options, settings, properties, configuration, and preferences. -
After setting up Dayong,
commit
andpush
your changes.
-
git clone
Dayong to your local machine. -
Go to the project root directory.
cd Dayong
-
Create a copy of
.env.example
. Don't forget to omit the.example
at the end.On Linux and Unix
cp .env.example .env
On Windows
copy .env.example .env
-
Edit the
.env
file 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.json
file and its values as necessary.The
config.json
file stores public options, settings, properties, configuration, and preferences. -
Quickly test if the configuration works by running:
python dayong
-
After setting up Dayong,
git commit
andgit push
your changes.