Closed aetimmes closed 6 years ago
To refine the spec:
Parsing
?vote $1
will start a vote$1
is empty, the program will respond with the result of ?help vote
?f1
, ?yes
will record the user as for the measure, and ?f2
and ?no
will record the user's vote as against?f1
, ?yes
, ?f2
, and ?no
will print a help message. This will stomp any existing commands for theseVote behavior
@here
to alert present people of a vote. Followup messages will not at-include people.Planned for the future
?votelist
will list all called votes in a gist. In the first version, all votes will be stored, but there will be no commands for accessing them.?votelist @user
will show the votes called by the given user server-wide?votelist recent
will print the results of the 5 most-recent votes server-wideThe 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)
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
^ all of the above feedback (except notifying when the vote ends) have been addressed by the following commits: a0eb6e94161c59b255ddd245e4dc8495cabaee3c, 4b1f01d8bc2171ba6c640b58c7cbbfbc70edfd73, fb7364678c2d4eb6b7a8218225e4f8f0a47beecc, 8e19ff763c38fbae7115cf8ecb1f859d8cfe4743, ecba345eb0bf7c80e30271fe1e9892bc155b74ae
add tagback to "You already voted" message, ie "@dgmavn#1234 already voted"
Wrote 192597baa47652f791c7455d17014f84bbc1b8d1 to make all votes happen per-channel.
Remaining work:
860f6df1061b1ee35cc8bed620accd5203b68f4c addresses tagbacks
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.
I'd like a ?vote function to emulate the behavior of the vote function in CS:GO.