File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,59 @@ This project is set up as a monorepo using [Rye](https://rye.astral.sh). To get
99``` sh
1010rye run setup
1111```
12+
13+ ### Discord bot
14+
15+ 1 . [ Create a Discord bot] ( https://discordpy.readthedocs.io/en/stable/discord.html ) for development.
16+ 2 . Copy the bot token.
17+
18+ ### GitHub app
19+
20+ 1 . [ Create a GitHub app] ( https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app ) for development.
21+ * Callback URL: ` http://localhost:7100/login `
22+ * Webhook events: No
23+ * Permissions:
24+ * Repository:
25+ * Issues: Read-only
26+ * Metadata: Read-only
27+ * Where can this GitHub App be installed: Only on this account
28+ 2 . Generate and copy a new client secret.
29+ 3 . Generate and download a new private key.
30+
31+ ### Environment variables
32+
33+ ` .env ` :
34+
35+ ``` sh
36+ TOKEN=" Discord bot token"
37+ GITHUB=" {}"
38+ GITHUB__APP_ID=" GitHub app id"
39+ GITHUB__CLIENT_ID=" GitHub app client id"
40+ GITHUB__CLIENT_SECRET=" GitHub app client secret"
41+ GITHUB__REDIRECT_URI=" http://localhost:7100/login"
42+ GITHUB__DEFAULT_INSTALLATION_ID=" GitHub app repository installation id"
43+
44+ ENVIRONMENT=" dev"
45+ API_PORT=" 7100"
46+ API_ROOT_PATH=" "
47+ DB_URL=" sqlite:///db.sqlite"
48+ ```
49+
50+ ` .env.docker ` :
51+
52+ ``` sh
53+ TOKEN=" ..."
54+ GITHUB__APP_ID=" ..."
55+ GITHUB__CLIENT_ID=" ..."
56+ GITHUB__CLIENT_SECRET=" ..."
57+ GITHUB__REDIRECT_URI=" http://localhost:7100/login"
58+ GITHUB__DEFAULT_INSTALLATION_ID=" ..."
59+ ```
60+
61+ ` secrets/github__private_key ` : GitHub app private key file.
62+
63+ ## Running
64+
65+ Local: ` rye run bot `
66+
67+ Docker: ` docker compose up `
You can’t perform that action at this time.
0 commit comments