-
Notifications
You must be signed in to change notification settings - Fork 1
OnPoll handler
Arius Bronte edited this page Feb 24, 2020
·
3 revisions
Triggers a poll and responds with the word "poll".
commands.OnPoll("poll");
Triggers a voice and and sends randomly from the array word.
commands.OnPoll("it`s poll", "great poll!");
You can set your own trigger processing logic.
commands.OnPoll(async (api, message, token) =>
{
// your logic
});