Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ategon/lemmy-score-bot
A lemmy bot that detects when posts reach an upvote total
https://github.com/ategon/lemmy-score-bot
bot bots fediverse fediverse-bot javascript lemmy lemmy-bot
Last synced: 23 days ago
JSON representation
A lemmy bot that detects when posts reach an upvote total
- Host: GitHub
- URL: https://github.com/ategon/lemmy-score-bot
- Owner: Ategon
- License: agpl-3.0
- Created: 2023-07-18T04:05:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-18T04:19:57.000Z (over 1 year ago)
- Last Synced: 2023-07-18T05:23:17.323Z (over 1 year ago)
- Topics: bot, bots, fediverse, fediverse-bot, javascript, lemmy, lemmy-bot
- Language: JavaScript
- Homepage: https://programming.dev
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lemmy Score Bot
A lemmy bot that detects when posts reach an upvote total and then responds with a reply## Setup
1. Clone the repository
2. Create an account in the instance you want the bot to have as its home (just make a regular user)
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)
```
LEMMY_INSTANCE="" // The instance the bot account is in
LEMMY_USERNAME="" // The bot username
LEMMY_PASSWORD="" // The bot password
```
4. Change the data in config.yaml based on what you want set
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)I recommend installing something like [forever.js](https://www.npmjs.com/package/forever) for making it run continually
If you run into issues feel free to dm me on Matrix [here](https://matrix.to/#/@ategon:matrix.org)