A template for STEEM bots running on AWS Lambda

in #utopian-io7 years ago (edited)

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

Sort:  

Thank you for the contribution. It has been approved.
However, it would be nice to see more information about the Bot itself and what it does.

You can contact us on Discord.
[utopian-moderator]

Hey @nafestw I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x