Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 877 Bytes

demo.md

File metadata and controls

47 lines (34 loc) · 877 Bytes

Directive

/include:

/format: list {{#each people}} {{name}} / {{age}}, {{/each}}

/plugin: test

req.variables.today = new Date().getDate();
req.variables.day = new Date().getDay();
req.variables.year = new Date().getFullYear();

Commands

@ geoip https://api.ipify.org/?format=json

@ list_patient https://raw.githubusercontent.com/yeuai/botscript/master/examples/data/list.json

Definitions

! ask_iphone

  • 4s is great

Define dialogue scripts

  • what is my ip
  • true => @geoip
  • Here is your ip: $ip
  • what time is it
  • It is $time
  • show my list
  • true => @list_patient
  • Here is your list: $people /format:list
  • howdy
  • Today is $today

enabled plugins

test
addTimeNow