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