@machinat/script
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.0 • Public • Published

    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 and the package reference.

    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,
          ],
        }),
      ],
    });

    Keywords

    none

    Install

    npm i @machinat/script

    DownloadsWeekly Downloads

    5

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    82.4 kB

    Total Files

    40

    Last publish

    Collaborators

    • lrills0515
    • lrills