1.8.19-100625 • Published 4 months ago

@elimeleth/vct-flow v1.8.19-100625

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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.8.19-100625

4 months ago

1.8.19-50625

5 months ago

1.8.19-130525

5 months ago

1.8.19-210425

6 months ago

1.8.19-140425

6 months ago

1.8.19-80425

6 months ago

1.8.19-20425

7 months ago

1.8.19-10425

7 months ago

1.8.19-310325-2

7 months ago

1.8.19-300325-2

7 months ago

1.8.19-300325-1

7 months ago

1.8.19-300325

7 months ago

1.8.19-270325

7 months ago

1.8.19-230325

7 months ago

1.8.19-210325

7 months ago

1.8.19-190325

7 months ago

1.8.19-50325

8 months ago

1.8.19-040325-1

8 months ago

1.8.19-40325

8 months ago

1.8.19-030325-1

8 months ago

1.8.19-30325

8 months ago

1.8.19-280225

8 months ago

1.8.19

8 months ago

1.8.18

8 months ago

1.8.17

8 months ago

1.8.16

8 months ago

1.8.15

8 months ago

1.8.14

8 months ago

1.8.13

8 months ago

1.8.12

9 months ago

1.8.11

9 months ago

1.8.10

9 months ago

1.8.9

9 months ago

1.8.8

9 months ago

1.8.7

9 months ago

1.8.6

9 months ago

1.8.5

9 months ago

1.8.4

9 months ago

1.8.3

9 months ago

1.8.2

9 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.7.8

11 months ago

1.7.7

11 months ago

1.7.6

11 months ago

1.7.5

11 months ago

1.7.4

11 months ago

1.7.3

11 months ago

1.7.2

11 months ago

1.7.1

11 months ago

1.7.0

11 months ago

1.6.8

12 months ago

1.6.7

12 months ago

1.6.6

12 months ago

1.6.5

12 months ago

1.6.4

12 months ago

1.6.3

12 months ago

1.6.2

12 months ago

1.6.1

12 months ago

1.5.0

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago