Skip to contents

keep_entry() keeps what a plugin needs later in a conversation, at a turn (it then belongs to the branches through that turn), or with no turn (every branch); never shown to a model by itself. Inside a hook, give the event: the entry is the hook's plugin's, at its turn. entries() reads a plugin's entries of a kind on a branch, oldest first.

Usage

keep_entry(x, kind, data, plugin = NULL, turn = NULL)

entries(x, kind, plugin = NULL, branch = NULL)

Arguments

x

A conversation, or a hook's event.

kind

The entry's kind (a name).

data

What it keeps (JSON).

plugin

The plugin's name (an event knows its own).

turn

The turn it belongs to (NULL: every branch).

branch

The branch through this turn (default: the head).

Value

entries(): a list of list(turn, data, at).