This was a project idea that came during my time struggling to beat the bots on buying a 5600x. After days of missing in stock notifications,
I decided I had to do something about it. I wanted to make a Discord bot that would alert me anytime a post was made on /r/buildapcsales regarding any CPU.
It was a great opportunity to learn about using the Reddit API and how Discord bots worked and I had a lot of fun with it.
I've recently expanded to include other PC parts and also to search for posts in the hardwareswap subreddit.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/sudo-dco/buildapcsalesbot.git
- Install NPM packages
npm install
- Build Bundle
npm run build
- Rename .exampleEnv file to .env and add your reddit bot credentials and your Discord bot token.
- Edit the timer variable in /server/index.js to adjust how often you want the bot to check. Default is 5 minutes.
- Edit the channel IDs variables in /server/index.js with the ID's of the channel you want to send to in Discord.
- Run the script with 'npm run server', navigate to http://localhost:3000 and click "Start Interval" to run.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Your Name - @twitter_handle - thisisdco@gmail.com
Project Link: https://github.com/sudo-dco/buildapcsalesbot