Skip to content

Instantly share code, notes, and snippets.

@zehfernandes
Last active February 26, 2016 19:54
Show Gist options
  • Save zehfernandes/8d70eb2214022f3bbe01 to your computer and use it in GitHub Desktop.
Save zehfernandes/8d70eb2214022f3bbe01 to your computer and use it in GitHub Desktop.
Superscript compile tricks

Save

^save(subject,value)
^createUserFact(subject, predicate, value)
^createfact(^object color ^color) 

factsDB

var facts = that.facts.db;
var userfacts = that.user.memory.db;
var botfacts = that.botfacts.db;

How system work: superscriptjs/superscript#110

Message

var message = this.message;
this.message.props

Topics

Redirect for the flow handle

- ^topicRedirect(topic_name, __handle__ )

Find occurrences that match

- ^respond( topic_name )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment