Skip to content

woomurf/simple-echo-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple echo bot server

This is a simple echo bot server made to test the trigger function of ain blockchain. You can register an api as a trigger function in a specific path of ain-blockchain. When a value is written to a specific path, it is triggered in the ain-blockchain node to call the registered api.

In Ainize, you can simply create ain-blockchain app and register trigger function. If you want to know how to do that, Refer Ainize trigger tutorial.

Trigger

When you register trigger function in ainize, input below information.

databasePath: /apps/{APPNAME}/messages/$userAddr/$timestamp/user
$ means wildcard. For example, $userAddr can be replaced with any strings.

endpoint: {YOUR_AINIZE_ENDPOINT}/trigger

Trigger function response to below path.
responsePath: /apps/{APPNAME}/messages/$userAddr/$timestamp/echo-bot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published