Skip to content

Commit 18edc9d

Browse files
committed
docs: Update docs
1 parent 3bb7761 commit 18edc9d

File tree

3 files changed

+39
-8
lines changed

3 files changed

+39
-8
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ Python
6767
// todo: the team will be expanded once members are confirmed
6868

6969
### Contributing
70-
If you are looking to contribute to the project, you may find the [**Developer Guide**](https://github.com/react-chatbotify/discord-bot/blob/main/docs/DeveloperGuide.md) useful.
71-
72-
In general, the forking workflow is encouraged and you may open a pull request with clear descriptions on the changes and what they are intended to do (enhancement, bug fixes etc). Alternatively, you may simply raise bugs or suggestions by opening an [**issue**](https://github.com/react-chatbotify/discord-bot/issues) or raising it up on [**discord**](https://discord.gg/6R4DK4G5Zh).
73-
74-
Note: Templates have been created for pull requests and issues to guide you in the process.
70+
If you are looking to contribute to the project, please refer to the [**Contributing Guide**](https://github.com/React-ChatBotify/discord-bot/blob/main/CONTRIBUTING.md).
7571

7672
### Support
7773
If there are any questions pertaining to the application itself (usage or implementation wise), you may create an [**issue**](https://github.com/react-chatbotify/discord-bot/issues), raise it up on [**discord**](https://discord.gg/6R4DK4G5Zh), or drop an email to: **cjtanjin@gmail.com.**

docs/DeveloperGuide.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,41 @@ Before diving into the rest of the contents in our developer guide, the followin
3636

3737
## Setup
3838

39-
Setting up the project is relatively simple. Before you begin, ensure that you have **at least Python 3.10 and Docker** installed.
39+
Setting up the project can be a little involved if this is your first time (mostly because you have to create a **discord bot**). To begin, head over to the [**discord developer portal**]() and create a new bot. Then, visit the **installation** tab on the left and ensure the following default permissions are given to the bot:
40+
<details> <summary>Click to view permissions</summary>
41+
- Add Reactions
42+
- Attach Files
43+
- Ban Members
44+
- Create Events
45+
- Create Polls
46+
- Create Private Threads
47+
- Create Public Threads
48+
- Embed Links
49+
- Kick Members
50+
- Manage Channels
51+
- Manage Events
52+
- Manage Messages
53+
- Manage Roles
54+
- Manage Threads
55+
- Mention Everyone
56+
- Moderate Members
57+
- Read Message History
58+
- Send Messages
59+
- Send Messages in Threads
60+
- Use External Emojis
61+
- Use External Stickers
62+
- Use Slash Commands
63+
- View Audit Log
64+
- View Channels
65+
- View Server Insights
66+
- View Server Subscription Insights
67+
<details>
68+
69+
Within the **bot** tab, ensure that **presence intent**, **server members intent** and **message content intent** are all enabled. These should be sufficient to create the required discord bot.
70+
71+
Next, we need to setup the discord development server (this is where you'll invite the bot and do all your testing/debugging). Thankfully, the server templates feature makes this step a lot easier. Simply use the [**template provided here**](https://discord.new/UWFcwJYa45bX) to create a discord server for testing your bot. Once that's done, you may proceed to the repository setup.
72+
73+
To setup the project repository proper, ensure that you have **at least Python 3.10 and Docker** installed.
4074
1) Fork the [project repository](https://github.com/react-chatbotify/discord-bot).
4175
2) Clone the **forked project** into your desired directory with:
4276
```
@@ -46,7 +80,8 @@ Setting up the project is relatively simple. Before you begin, ensure that you h
4680
```
4781
pip install -r requirements.txt -r requirements-dev.txt
4882
```
49-
4) Once installations are complete, you may launch the project with:
83+
4) Populate the *.env.local* file with the necessary values (e.g. bot token, channel ids)
84+
5) Once installations are complete and your env file is setup, you may launch the project with:
5085
```
5186
hatch run start
5287
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ packages = ["src/bot"]
1616
[tool.hatch.envs.default.scripts]
1717
lint = "darglint ./src/bot && ruff check --fix ./src/bot && black --check ./src/bot"
1818
format = "ruff check --fix ./src/bot && black ./src/bot"
19-
start = "docker compose up -d --build"
19+
start = "docker compose --env-file .env.local up -d --build"
2020

2121
[tool.hatch.envs.dev]
2222
dependencies = ["pre-commit"]

0 commit comments

Comments
 (0)