Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/botmasterai/botmaster-fulfill-actions

Standard actions to use in your botmaster outgoing middleware stack.
https://github.com/botmasterai/botmaster-fulfill-actions

Last synced: about 2 months ago
JSON representation

Standard actions to use in your botmaster outgoing middleware stack.

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/botmasterai/botmaster-fulfill-actions.svg?branch=master)](https://travis-ci.org/botmasterai/botmaster-fulfill-actions)
[![Coverage Status](https://coveralls.io/repos/github/botmasterai/botmaster-fulfill-actions/badge.svg?branch=master)](https://coveralls.io/github/botmasterai/botmaster-fulfill-actions?branch=master)

# Botmaster actions

Useful actions for botmaster fulfill ).

Enable chatbots to perform actions on Node.js.

Find the documentation at the main botmaster website:

# Reference

## pause

Break text up with a separate messages pausing before each one

```xml

```

evaluated in series
after evaluating all text / xml before removed
controller sends text before and then waits before allowing rest of text/xml to be evaluated
if the bot implements typing a typing status is sent between pauses.

**Parameters**

- `wait` {String} how long to wait in ms between each defaults to 1000

## greet

Greet users with a greeting that reflects the time of day

```xml

```

Outputs based on the detected system language

**English (en)**

- between 4 am and 12 pm say "Good morning"
- between 12 pm and 5pm say "Good afternoon"
- between 5 pm and 4am say "Good evening"

**Spanish (es)**

- between 4 am and 12 pm say "Buenos dias"
- between 12 pm and 8pm say "Buenas tardes"
- between 8 pm and 4am say "Buenas noches"

**Dutch (nl)**

- between 4 am and 12 pm say "Goedemorgen"
- between 12 pm and 6 pm say "Goedemiddag"
- between 6 pm and 12 am say "Goedenavond"
- between 12 am and 4 am say "Goedenacht"

**Parameters**

- `tz` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Which timezone to use for the time-based greeting. Defaults to GMT. To see available options see
- `lang` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Which language to use. Defaults to system locale setting