somakeit / smib

1 stars 0 forks source link

POLL Plugin #148

Open sam57719 opened 3 months ago

sam57719 commented 3 months ago

Create a POLL Plugin which allows creattion and tracking of POLLs

Similar to simplepoll but free!

Block Kit builder example

{
    "blocks": [
        {
            "type": "header",
            "text": {
                "type": "plain_text",
                "text": "Poll",
                "emoji": true
            }
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Please vote for your preferred option."
            }
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Option 1"
            },
            "accessory": {
                "type": "button",
                "text": {
                    "type": "plain_text",
                    "text": "Vote",
                    "emoji": true
                },
                "value": "option_1"
            }
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Option 2"
            },
            "accessory": {
                "type": "button",
                "text": {
                    "type": "plain_text",
                    "text": "Vote",
                    "emoji": true
                },
                "value": "option_2"
            }
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Option 3"
            },
            "accessory": {
                "type": "button",
                "text": {
                    "type": "plain_text",
                    "text": "Vote",
                    "emoji": true
                },
                "value": "option_3"
            }
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Created by @sam57719 using `/poll`"
            }
        }
    ]
}