jakevoytko / crbot

A Discord bot that acts as a call-and-response bot. It reacts to ? commands with the learned response.
MIT License
7 stars 3 forks source link

?vote function #20

Closed aetimmes closed 6 years ago

aetimmes commented 7 years ago

I'd like a ?vote function to emulate the behavior of the vote function in CS:GO.

jakevoytko commented 7 years ago

To refine the spec:

Parsing

Vote behavior

Planned for the future

jakevoytko commented 7 years ago

The above has a beta version of vote to collect feedback. This doesn't have the timer that prints the result of the vote.

Feedback, based on my friends' experimentation with it:

I want to do all of these but re-ping (since it overlaps with ?votestatus)

jakevoytko commented 7 years ago

Also, experiment with switching the @here to @everyone and see how spammy that feels. I feel like that's something I'd need to make configurable per-server

jakevoytko commented 7 years ago

^ all of the above feedback (except notifying when the vote ends) have been addressed by the following commits: a0eb6e94161c59b255ddd245e4dc8495cabaee3c, 4b1f01d8bc2171ba6c640b58c7cbbfbc70edfd73, fb7364678c2d4eb6b7a8218225e4f8f0a47beecc, 8e19ff763c38fbae7115cf8ecb1f859d8cfe4743, ecba345eb0bf7c80e30271fe1e9892bc155b74ae

aetimmes commented 7 years ago

add tagback to "You already voted" message, ie "@dgmavn#1234 already voted"

jakevoytko commented 7 years ago

Wrote 192597baa47652f791c7455d17014f84bbc1b8d1 to make all votes happen per-channel.

Remaining work:

jakevoytko commented 7 years ago

860f6df1061b1ee35cc8bed620accd5203b68f4c addresses tagbacks

jakevoytko commented 6 years ago

d1a79fa65d03aaf86399916f9968dc721c68586c expires votes. I'm going to close this out and file a bug to have timers for all non-concluded votes restarted on startup.