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
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,14 @@ This bot is made for the https://programming.dev/ communities but the source cod
6
6
## Prerequisites
7
7
- You need to have installed node.js in order to run the bot
8
8
9
-
## Notes
10
-
- If running on windows the environment variables may act up. You can insert them manually into the bot by replacing the things like process.env.USERNAME and the other things starting with process.env with the value for username in .env or their other respective value. (However do not push these changes to git as then your password will be public)
11
-
12
-
13
9
## Setup
14
10
1. Clone the repository
15
11
2. Create an account in the instance you want the bot to have as its home (just make a regular user)
16
12
3. Create a file called .env in the bot folder and give it values in this format with the data in the quotes (dont add the slashes or the part after the slashes)
17
13
```
18
-
INSTANCE="" // The instance the bot account is in
19
-
USERNAME="" // The bot username
20
-
PASSWORD="" // The bot password
14
+
LEMMY_INSTANCE="" // The instance the bot account is in
15
+
LEMMY_USERNAME="" // The bot username
16
+
LEMMY_PASSWORD="" // The bot password
21
17
```
22
18
4. Change the data in config.yaml based on what you want set. Set the communities and feeds you want here
23
19
5. Open a terminal in the bot folder and run `npm install` to install dependendies and then `node main.js` to run the bot (whenever you want to start the bot again you can just do ctrl+c to interrupt the process and node main.js to start the bot)
0 commit comments