Custom Command
Tutorials & Examples

Sending Polls

In this guide, you will learn how to send a poll.

Creating Command

First step is to create a command.

Trigger Options

Let assume the user wants to say !poll to send the poll:

Code

For the code, we will use:

Constructing the Poll

Now we need to create a simple poll:

{poll:
    {question=Do you like turtles?}
    {duration=2h}
    
    {answer=Yes}
    {emoji=🐢}
    
    {answer=No}
    {emoji=}
}

And put it inside of $sendMessage to send it:

$sendMessage[
    {poll:
        {question=Do you like turtles?}
        {duration=2h}

        {answer=Yes}
        {emoji=🐢}

        {answer=No}
        {emoji=}
    }
]

After the code is done, don't forget to save the command.

Testing

Send the command and see if it works!

Member
9/5/2026

!poll

Custom Command
APP
9/5/2026
Do you like turtles?
Select one answer
0 votes
120m left
Show results
Vote

On this page