1.4.7-40325 • Published 10 months ago

@elimeleth/vct-layers v1.4.7-40325

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

GET STARTER

Crea un archivo app.ts, coloca el codigo de abajo alli y luego puedes correrlo con npx tsx src/app.ts

Getting Started

Installation

First, install the necessary packages using pnpm:

pnpm install @elimeleth/vct-flow @elimeleth/vct-baileys

Setting Up Your Project

Create a new file named app.ts in your project directory. Copy and paste the following code into this file:

/*
    Check the documentation for more details:

    https://docs.vaincent.flippoapp.com/es/recipes/workflows/
*/

import "dotenv/config";
import { Workflow, GlobalRouter } from "@elimeleth/vct-flow";
import { BaileysProvider } from "@elimeleth/vct-baileys";

const general = new Workflow("any")
    .addAction("Hello world!");

const router = new GlobalRouter({
    provider: new BaileysProvider({
        name: "bot"
    })
});

router.addFlows([general]).listen();

Running Your Application

You can run your application using the following command:

npx tsx src/app.ts

Configuring the Port

By default, the application runs on port 7777. You can change this by setting the PORT environment variable in your .env file:

PORT=YOUR_PREFERRED_PORT

Additional Resources

For more detailed information and advanced configurations, please refer to the official documentation:

Vaincent Documentation

1.4.7-40325

10 months ago

1.4.7

11 months ago

1.4.6

11 months ago

1.4.5

11 months ago

1.4.4

11 months ago

1.4.3

11 months ago

1.4.2

12 months ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago