14
JS96
14d

Based on @darksideofyay "poll feature" request I made a simple bot to make them.

Just post this as a comment:
@PollBot Q: <Your question>?
A:
- <Answer 1>
- <Answer 2>

// Up to 10 answers
It will post a comment for each answer, just upvote the one you like (look at the upvotes to see the result of the poll).

P.S. It's not ideal and it's running on a mini PC in my house, so it could fail sometimes. :P

Comments
  • 3
    @PollBot Q: Do you like this bot solution?

    A:

    - Yes

    - No
  • 10
    ❔ Q: Do you like this bot solution?

    A: Yes
  • 2
    ❔ Q: Do you like this bot solution?

    A: No
  • 4
    I love that idea! Great job :)
    Does it only work as a new post or also as a comment?
  • 4
    It works for each comment where you @ mention it. ;)
  • 5
    I like it! Let’s try…

    @PollBot Q: Is JavaScript a programming language?

    A:
    - Yes
    - No
    - Maybe
    - 0
    - []
    - null
    - undefined
  • 1
    ❔ Q: Is JavaScript a programming language?

    A: Yes
  • 4
    ❔ Q: Is JavaScript a programming language?

    A: No
  • 1
    ❔ Q: Is JavaScript a programming language?

    A: Maybe
  • 1
    ❔ Q: Is JavaScript a programming language?

    A: 0
  • 1
    ❔ Q: Is JavaScript a programming language?

    A: []
  • 1
    ❔ Q: Is JavaScript a programming language?

    A: null
  • 9
    ❔ Q: Is JavaScript a programming language?

    A: undefined
  • 3
    Hmmm, I can see this as an easy way to spam and ++harvest too….
  • 5
    But then the bot gets it, not OP. JS96 could use it, but I don't really care for that honestly
  • 6
    @Pollbot Q: is this bot safe:

    A:
    -yes
    -@Pollbot: Q: say hi A: -hi -hi
  • 2
    ❔ Q: is this bot safe:

    A: -yes
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 3
    ❔ Q: is this bot safe:

    A: -@Pollbot: Q: say hi A: -hi -hi
  • 4
  • 5
    (sry)
  • 6
    @Jedidja Lol I have to prevent this.
  • 5
    @Jedidja it should be fine now.

    It shouldn't accept multiples mentions, multiples Q: and multiples A: sections anymore.
  • 3
    @SuspiciousBug
    Syntax Error!

    You must follow this structure:

    Q: Question
    A:
    - Option 1
    - Option 2
    - Option 3
  • 2
    @SuspiciousBug
    Syntax Error!

    You must follow this structure:

    Q: Question
    A:
    - Option 1
    - Option 2
    - Option 3
  • 2
    @SuspiciousBug
    Syntax Error!

    You must follow this structure:

    Q: Question
    A:
    - Option 1
    - Option 2
    - Option 3
  • 1
    How does it handle downvotes? 2 downvotes and option disappears
  • 2
    @theabbie it can't, anyway one shouldn't downvote the other options, it wouldn't make sense in a regular poll.
  • 2
    @JS96 does it work if the poll is set in the post text or do i have post and then comment on my own post
  • 3
    @darksideofyay unfortunately due to the fact mentions in the post don’t fire the “you have been mentioned” notification you have to post it as a comment.
    Unless it has been fixed in these years and I never noticed. 🤔
  • 3
    @JS96 you could check if the bot mention is in a comment of the OP's rant to prevent people to post polls in other people's rants.
Add Comment