near.social bots coded in JS

Description

Please create a public widget where anyone can write a bot in JS that would get triggered when some action happens in near.social (e.g. a post is written) and can perform some action in return (e.g. write a reply).

Acceptance criteria

Criteria The widget performs as outlined above. Please also implement a widget that allows you to see all current bots and manage your own bots. The code of all bots need to live in a single contract and there should be a function trigger_bot(bot_id: String) that allows one to trigger a bot with the given id.

Rewards

Resources

Example Wdiget
https://github.com/petersalomonsen/quickjs-rust-near/tree/master/examples/nft#nft-contract-customizable-with-javascript
NEAR Docs
https://docs.near.org/
Dev Tools
https://near.org/developers/tools/
NEAR BOS Docs
https://thewiki.near.page/near.social_docs
Bounty video