-
Notifications
You must be signed in to change notification settings - Fork 2
OnAudio handler
Arius Bronte edited this page Feb 24, 2020
·
1 revision
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!");
You can set your own trigger processing logic.
commands.OnAudio(async (api, message, token) =>
{
// your logic
});