Reddit karma farmer
Simple algorithm that searches for old posts, modifies to avoid duplication detection, and reposts for that sweet karma. Starting/Stopping can be operated by a simple UI. The algorithm will run once every 20-35 minutes. Built with Laravel 6/Vue.js.
Installation
- Clone repository.
- run
make build
. - Add missing ENV values in
.env
:- REDDIT_CLIENT_ID
- REDDIT_SECRET
- REDDIT_USER_AGENT
- REDDIT_USERNAME
- REDDIT_PASSWORD
NOTE: Reddit API Docs for help setting up an App, Client ID and Secret.
Docker
This project uses Laradock for local development/running locally.
- Run
make docker_create
to create the docker instance. This may take a while... - Run
make docker_up
to start the containers.
NOTE: Runmake docker_down
to stop the containers.
Creating MySQL database and granting access
- Attach shell to
laradock_myql
container. (Usingdocker-compose exec
or Docker Extension). - Run
mysql -uroot -proot
inside thelaradock_myql
container for root access. - Finally run the following commands:
CREATE DATABASE IF NOT EXISTS `reddit_bot` COLLATE ‘utf8_general_ci’;
GRANT ALL ON `reddit_bot`.* TO 'default'@'%';
To test run php artisan migrate:fresh --seed
inside the laradock_workspace
container, if migration success the DB connection has been established.
See Laradock Documentation for further help.
Finally
In your browser of choice go to 127.0.0.1
and login.
Deafult login details are (Can be edited in database/seeds/UsersTableSeeder.php
):
- Email
user@email.com
- Password
getmesomekarma