2
2
[ ![ GitHub Workflow Status (CI)] ( https://img.shields.io/github/actions/workflow/status/lizardbyte/support-bot/ci.yml.svg?branch=master&label=CI%20build&logo=github&style=for-the-badge )] ( https://github.com/LizardByte/support-bot/actions/workflows/ci.yml?query=branch%3Amaster )
3
3
[ ![ Codecov] ( https://img.shields.io/codecov/c/gh/LizardByte/support-bot.svg?token=900Q93P1DE&style=for-the-badge&logo=codecov&label=codecov )] ( https://app.codecov.io/gh/LizardByte/support-bot )
4
4
5
- Support bot written in python to help manage LizardByte communities. The current focus is discord and reddit , but other
6
- platforms such as GitHub discussions/issues could be added.
5
+ Support bot written in python to help manage LizardByte communities. The current focus is Discord and Reddit , but other
6
+ platforms such as GitHub discussions/issues might be added in the future .
7
7
8
8
9
9
## Overview
@@ -24,45 +24,52 @@ platforms such as GitHub discussions/issues could be added.
24
24
* Presence Intent
25
25
* Server Members Intent
26
26
* Copy the ` Token `
27
- * Add the following as environment variables or in a ` .env ` file (use ` sample.env ` as an example).
28
- :exclamation : if using Docker these can be arguments.
29
- :warning : Never publicly expose your tokens, secrets, or ids.
30
-
31
- | variable | required | default | description |
32
- | -------------------------| ----------| ------------------------------------------------------| ---------------------------------------------------------------|
33
- | DISCORD_BOT_TOKEN | True | ` None ` | Token from Bot page on discord developer portal. |
34
- | DAILY_TASKS | False | ` true ` | Daily tasks on or off. |
35
- | DAILY_RELEASES | False | ` true ` | Send a message for each game released on this day in history. |
36
- | DAILY_CHANNEL_ID | False | ` None ` | Required if daily_tasks is enabled. |
37
- | DAILY_TASKS_UTC_HOUR | False | ` 12 ` | The hour to run daily tasks. |
38
- | GRAVATAR_EMAIL | False | ` None ` | Gravatar email address for bot avatar. |
39
- | IGDB_CLIENT_ID | False | ` None ` | Required if daily_releases is enabled. |
40
- | IGDB_CLIENT_SECRET | False | ` None ` | Required if daily_releases is enabled. |
41
- | SUPPORT_COMMANDS_REPO | False | ` https://github.com/LizardByte/support-bot-commands ` | Repository for support commands. |
42
- | SUPPORT_COMMANDS_BRANCH | False | ` master ` | Branch for support commands. |
43
-
44
- * Running bot:
45
- * ` python -m src `
46
- * Invite bot to server:
47
- * ` https://discord.com/api/oauth2/authorize?client_id=<the client id of the bot>&permissions=8&scope=bot%20applications.commands `
48
-
49
27
50
28
### Reddit
51
29
52
30
* Set up an application at [ reddit apps] ( https://www.reddit.com/prefs/apps/ ) .
53
31
* The redirect uri should be https://localhost:8080
54
32
* Take note of the ` client_id ` and ` client_secret `
55
- * Enter the following as environment variables
56
-
57
- | Parameter | Required | Default | Description |
58
- | --------------------| ----------| ---------| -------------------------------------------------------------------------|
59
- | PRAW_CLIENT_ID | True | None | ` client_id ` from reddit app setup page. |
60
- | PRAW_CLIENT_SECRET | True | None | ` client_secret ` from reddit app setup page. |
61
- | PRAW_SUBREDDIT | True | None | Subreddit to monitor (reddit user should be moderator of the subreddit) |
62
- | DISCORD_WEBHOOK | False | None | URL of webhook to send discord notifications to |
63
- | GRAVATAR_EMAIL | False | None | Gravatar email address to get avatar from |
64
- | REDDIT_USERNAME | True | None | Reddit username |
65
- * | REDDIT_PASSWORD | True | None | Reddit password |
66
-
67
- * Running bot:
68
- * ` python -m src `
33
+
34
+ ### Environment Variables
35
+
36
+ * Add the following as environment variables or in a ` .env ` file (use ` sample.env ` as an example).
37
+ :exclamation : if using Docker these can be arguments.
38
+ :warning : Never publicly expose your tokens, secrets, or ids.
39
+
40
+ | variable | required | default | description |
41
+ | ----------------------------------| ----------| ------------------------------------------------------| -------------------------------------------------------------------------|
42
+ | DAILY_TASKS | False | ` true ` | Daily tasks on or off. |
43
+ | DAILY_RELEASES | False | ` true ` | Send a message for each game released on this day in history. |
44
+ | DAILY_CHANNEL_ID | False | ` None ` | Required if daily_tasks is enabled. |
45
+ | DAILY_TASKS_UTC_HOUR | False | ` 12 ` | The hour to run daily tasks. |
46
+ | DISCORD_BOT_TOKEN | True | ` None ` | Token from Bot page on discord developer portal. |
47
+ | DISCORD_CLIENT_ID | True | ` None ` | Discord OAuth2 client id. |
48
+ | DISCORD_CLIENT_SECRET | True | ` None ` | Discord OAuth2 client secret. |
49
+ | DISCORD_GITHUB_STATUS_CHANNEL_ID | True | ` None ` | Channel ID to send GitHub status updates to. |
50
+ | DISCORD_REDDIT_CHANNEL_ID | True | ` None ` | Channel ID to send Reddit post updates to. |
51
+ | DISCORD_REDIRECT_URI | False | ` https://localhost:8080/discord/callback ` | The redirect uri for OAuth2. Must be publicly accessible. |
52
+ | DISCORD_SPONSORS_CHANNEL_ID | True | ` None ` | Channel ID to send sponsorship updates to. |
53
+ | GITHUB_CLIENT_ID | True | ` None ` | GitHub OAuth2 client id. |
54
+ | GITHUB_CLIENT_SECRET | True | ` None ` | GitHub OAuth2 client secret. |
55
+ | GITHUB_REDIRECT_URI | False | ` https://localhost:8080/github/callback ` | The redirect uri for OAuth2. Must be publicly accessible. |
56
+ | GITHUB_WEBHOOK_SECRET_KEY | True | ` None ` | A secret value to ensure webhooks are from trusted sources. |
57
+ | GRAVATAR_EMAIL | False | ` None ` | Gravatar email address for bot avatar. |
58
+ | IGDB_CLIENT_ID | False | ` None ` | Required if daily_releases is enabled. |
59
+ | IGDB_CLIENT_SECRET | False | ` None ` | Required if daily_releases is enabled. |
60
+ | PRAW_CLIENT_ID | True | None | ` client_id ` from reddit app setup page. |
61
+ | PRAW_CLIENT_SECRET | True | None | ` client_secret ` from reddit app setup page. |
62
+ | PRAW_SUBREDDIT | True | None | Subreddit to monitor (reddit user should be moderator of the subreddit) |
63
+ | REDDIT_USERNAME | True | None | Reddit username |
64
+ | REDDIT_PASSWORD | True | None | Reddit password |
65
+ | SUPPORT_COMMANDS_REPO | False | ` https://github.com/LizardByte/support-bot-commands ` | Repository for support commands. |
66
+ | SUPPORT_COMMANDS_BRANCH | False | ` master ` | Branch for support commands. |
67
+
68
+ ### Start
69
+
70
+ ``` bash
71
+ python -m src
72
+ ```
73
+
74
+ * Invite bot to server:
75
+ * ` https://discord.com/api/oauth2/authorize?client_id=<the client id of the bot>&permissions=8&scope=bot%20applications.commands `
0 commit comments