Skip to content

OnAudio handler

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

Basic usage

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

commands.OnAudio("audio");

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

commands.OnAudio("it`s audio", "nice audio!", "amazing audio!");

Extended

You can set your own trigger processing logic.

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