Automation Scripts for Developers and Makers
Automation Scripts for Developers and Makers
I love automatisms. Every developer should put more into automatisms.
For quite some time now I have been building scripts which take over a lot of work.
Since the scripts are getting more and more I started a repository where I collect all my scripts.
Repository
- https://github.com/dehenne/automation-scripts
- Licence MIT
New Features
What feature(s) did you add?
- Auto vote script for Steemit
- Get all users for makerlog
- Tweet Maker of the day from Makerlog
- Auto vote script for Twitter
- Tweet random tweets at Twitter
How did you implement it/them?
Here I would like to show you the newest script. The newest script is an auto vote script for Steemit. So you don't have to give your keys to services. Everything is up to you and therefore more secure.
You can find the script itself under:
https://github.com/dehenne/automation-scripts/tree/master/steem/auto-vote
The whole script is designed to run with Cron.
This was supported by the latest patch patch 0ca7c94
What do you need now
- NodeJS
- NPM
How to install it
- Export the auto-vote folder (https://github.com/dehenne/automation-scripts/tree/master/steem/auto-vote)
Either copy the files to a location of your choice or check it out with git.
git clone git@github.com:dehenne/automation-scripts.git
- Execute npm installation
npm install
- Fill in all config parameters
Please fill in all settings in the config.js file.
// which users should be voted
let USERS = ['username', 'username', 'username'];
// Weighting of votes
const CONFIG_WEIGHT = 10000;
// User name of the voter
const USERNAME = 'YOUR-USERNAME';
// Password of the voter
const PASSWORD = 'YOUR-PASSWORD';
- Run the script by
nodejs run.js
If you want to run the whole thing automatically you can use cron to do this.
I recommend to run this every 5 minutes.
*/5 * * * * cd PATH_TO_THE_SCRIPT; nodejs run.js
A good explanation on how to use cron can be found at https://wiki.ubuntuusers.de/Cron/.
The Run Script
The run script is quite simple. It votes only on posts that are older than 15 minutes, noticed if you voted already and votes only posts that are younger than 5 days.
The complete source code is documented as usual.
The most important functions are:
- getUserPosts https://github.com/dehenne/automation-scripts/blob/master/steem/auto-vote/run.js#L36
- voteOnPost https://github.com/dehenne/automation-scripts/blob/master/steem/auto-vote/run.js#L114
- isAlreadyVoted https://github.com/dehenne/automation-scripts/blob/master/steem/auto-vote/run.js#L140
GitHub Account
For further ideas of some automation scripts you are welcome to write me an issue.
Thanks for reading
Hen
Leave Automation Scripts for Developers and Makers to:
Read more #utopian-io posts
Best Posts From π·π΄π½ π‘
We have not curated any of dehenne's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From π·π΄π½ π‘
- Kombo: Tamed Mammoth + Auric Rush - Gods Unchained
- Kombo: Uncanny Rogue und die Deadly Bombs - Gods Unchained
- Kombo: Patience Priestess + Battle Cleric - Gods Unchained
- Kombo: Marsh Walker + Guerilla Training - Gods Unchained
- MarktplΓ€tze / Exchanges fΓΌr Gods Unchained
- Sanctum & Favor ist hier
- Gods Unchained β Wo bekomme ich Informationen her?
- hier gibt es nichts zu sehen
- Gods Unchained - Das Online-Sammelkartenspiel
- Product API implementation into the PHP Client for Makerlog
- Projects API implementation into the PHP Client for Makerlog
- Tasks API implementation into the PHP Client for Makerlog
- Automation Scripts for Developers and Makers
- The Awesome Visiblity List
- STEEM To File Upload - Utopian Hackathon submission
- Loading a file into the STEEM blockchain
- Post the 'Daily SPN News bulletin' into the Discord
- STEEMPUNK-NET REST API and Discord Bot Extension
- Welcome Messages for new Users
- Fix for a backend error in the QUIQQER Open Source System