Skip to content

OnVideo handler

Arius Bronte edited this page Feb 24, 2020 · 1 revision

Basic usage

Triggers a video and responds with the word "video".

commands.OnVideo("video");

Triggers a photo and and sends randomly from the array word.

commands.OnVideo("it`s video", "nice video!", "amazing video!");

Extended

You can set your own trigger processing logic.

commands.OnVideo(async (api, message, token) =>
{
    // your logic
});
Clone this wiki locally