Socket
Book a DemoInstallSign in
Socket

@machinat/script

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@machinat/script

Control conversation flow with programming language styled script.

Source
npmnpm
Version
0.5.0-beta.5
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

Script Module

Control conversation flow with programming language styled script.

Install

npm install @machinat/core @machinat/http @machinat/script
# or with yarn
yarn add @machinat/core @machinat/http @machinat/script

Docs

Check the Dialog Script document for the usage guide, and the package reference for API details.

Setup

Register the built script like this:

import Machinat from '@machinat/core';
import Script from '@machinat/script';
import BeforeSunrise from './scenes/BeforeSunset';
import BeforeSunset from './scenes/BeforeSunset';
import BeforeMidnight from './scenes/BeforeSunset';

const app = Machinat.createApp({
  modules: [
    Script.initModule({
      libs: [
        BeforeSunrise,
        BeforeSunset,
        BeforeMidnight,
      ],
    }),
  ],
});

FAQs

Package last updated on 19 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts