Skip to content

OnVoice handler

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

Basic usage

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

commands.OnVoice("voice");

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

commands.OnVoice("sounds great", "pleasant voice!");

Extended

You can set your own trigger processing logic.

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