Skip to content

webito-io/webito-plugin-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Starter Plugin! This plugin is designed to provide a simple and effective way to integrate with your application using the Webito Plugin SDK.

Features

  • Easy Integration: Quickly integrate with your existing application.
  • Hooks: Utilize hooks like messagesCreate and productsCreate to extend functionality.
  • Asynchronous Operations: Leverage asynchronous operations for better performance.

Installation

To install the Starter Plugin, follow these steps:

  1. Clone the repository:

    git clone https://github.com/webito-io/webito-plugin-starter
    cd starter-plugin
  2. Install dependencies:

    npm install
  3. Run the plugin:

    node dist/index.js

Usage

Registering Hooks

You can register hooks to handle specific events:

starter.registerHook('messagesCreate', ({ target }) => {
    // Your logic here
});

Executing Hooks

You can execute hooks with the following function:

const result = await starter.executeHook('hookName', { data });

Contributing

We welcome contributions! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published