nafestw avatar

A template for STEEM bots running on AWS Lambda

nafestw

Published: 03 Mar 2018 › Updated: 03 Mar 2018A template for STEEM bots running on AWS Lambda

A template for STEEM bots running on AWS Lambda

This is a small template for a STEEM bot, which can be deployed as AWS Lambda Function. The deployment is completely automated and triggered with npm run-script deploy. No additional interaction with the AWS management console is necessary.

The bot template uses a scheduled trigger to run the bot.

It is also possible to deploy an encrypted secret with the bot. This can be used for private STEEM keys. To enable this, set the respective options in config.js

Technology Stack

The template uses Node.js and steemjs to implement the bot. The automation of the deployment requires, that the the AWS command line interface is installed.

Usage

To deploy your own STEEM bot, first ensure you meet all the requirements (AWS CLI must be installed plus deployment currently only works on Linux/Mac).

Now clone the template and call npm install to get the dependencies (currently only steemjs).

Then replace the bot logic in bot.js with your bot logic and adapt the configuration settings in config.js. You may probably want to adapt the schedule expression for your bot's trigger. Finally deploy the bot with

npm run-script deploy

Be aware that deployment takes some time (up to several minutes) as it includes uploading the bot's code including all dependencies. Also keep in mind that AWS is not free (see the costs section in README.md).

License

The template is MIT licensed.

Roadmap

I plan to add support for deployment on Windows next.

How to contribute?

If you want to fix bugs or to add a feature to this template, open a pull request on Github.



Posted on Utopian.io - Rewarding Open Source Contributors

Leave A template for STEEM bots running on AWS Lambda to:

Written by

Software developer and crypto currency enthusiast

Read more #utopian-io posts


Best Posts From nafestw

We have not curated any of nafestw'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 nafestw