You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,10 @@ gleam run
46
46
47
47
## Setup
48
48
49
-
1. Create a `.env` file and fill in the values (you can use `.env.example` as a template):
49
+
### 1. Set the environment variables
50
+
51
+
Create a `.env` file and fill in the values (you can use `.env.example` as a template):
52
+
50
53
```.env
51
54
# Your Reddit username and password
52
55
REDDIT_USERNAME=
@@ -61,7 +64,10 @@ REDDIT_CLIENT_SECRET=
61
64
TELEGRAM_TOKEN=
62
65
```
63
66
64
-
2. Create the file `bridges.json` and fill in the values for the subreddits and channels you want to bridge (you can use `bridges.example.json` as a template):
67
+
### 2. Define the bridges
68
+
69
+
Create the file `bridges.json` and fill in the values for the subreddits and channels you want to bridge (you can use `bridges.example.json` as a template):
70
+
65
71
```json
66
72
[
67
73
{
@@ -80,4 +86,3 @@ TELEGRAM_TOKEN=
80
86
|`minimum_upvotes`| (Optional) The minimum number of upvotes a post must have to be sent to the channel. Default is `10`|
81
87
|`flair_include`| (Optional) When defined, only posts with a flair that is in the list will be sent to the channel. Default is `[]`|
82
88
|`flair_exclude`| (Optional) When defined, posts with a flair that is in the list will not be sent to the channel. Default is `[]`|
0 commit comments