Setup
Bot Account Setup
Follow the instructions here: https://discordpy.readthedocs.io/en/stable/discord.html
Bot Setup
| ❗❗ 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.gitGo to the project root directory.
cd DayongEdit 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.
For local development
git cloneDayong to your local machine.Go to the project root directory.
cd DayongCreate 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 .envEdit 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 dayongAfter setting up Dayong,
git commitandgit pushyour changes.