Skip to content

Commit 1c715fa

Browse files
authored
Update README.md
1 parent be8a4aa commit 1c715fa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ PASSWORD="" // The bot password
1818
```
1919
4. Change the data for the communities and feeds variables based on what you want set.
2020
5. **IMPORTANT:** If you do not want to bot to back post any other posts it finds in the rss feeds, the first time you start up the bot you have to comment out the lines where it calls createPost. When you start up the bot it will insert them all into the database so it doesnt post again but as the create post is commented out it doesnt make a post. You should see a bunch of things appearing in the logs about adding new links (and it may take up to 10 minutes for the cycle to get to a time where it wants to post to start doing that). Then when its done uncomment then start the bot up again and it should behave normally
21-
6. 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)
21+
the lines to comment out should look like this and to comment out just use /* to start the comment and */ to end it
22+
```
23+
await createPost({
24+
name: item.title,
25+
body: ((feed.content && feed.content === 'summary') ? item.summary : item.content),
26+
url: item.link || undefined,
27+
community_id: communityId,
28+
});
29+
```
30+
7. 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)
2231

2332
I recommend installing something like [forever.js](https://www.npmjs.com/package/forever) for making it run continually
2433

0 commit comments

Comments
 (0)