Skip to content

A bot for wasteof.money that posts the latest entry in an RSS feed. Built with axios and rss-parser. (and dotenv)

License

Notifications You must be signed in to change notification settings

manufacturecopy/wasteof-rss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasteof-rss

A bot for the social platform wasteof.money that posts the latest entry in an RSS feed.

setup

use your favorite package manager to install the dependencies.

npm:

npm i

yarn:

yarn

copy .env.example to .env and add your bot username & password. we'll get the token next.

getting the token

there's probably a way to do this within the main script, but i made a secondary one. run node token.js and it should return a token. copy this token into .env.

after the setup, simply run yarn run start or npm run start to make a post. i recommend setting up a cron job/crontab for a certain time, do not use something like pm2. i did not configure it to post like that.

anyways there's probably a better way to do this but i'm too stupid and half of this code is from stack overflow. i'll be honest.

god i hope my comments were helpful, this code sucks

License


Copyright (c) 2023 manufacturecopy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

some credits

thank you wuilly for the incredible wasteof.money api documentation

thank you imadeanaccount for inspiring me to make my bot open source after you made yours

thank you to the people at HNRSS for offering an easy way to grab Hacker News posts as RSS for the original version of this code, @hackernews

thank you to the axios, dotenv, and rss-parser libraries. without them, this bot would not exist.

and of course, thank you jeffalo for making the amazing wasteof.money.

About

A bot for wasteof.money that posts the latest entry in an RSS feed. Built with axios and rss-parser. (and dotenv)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published