Skip to content

Releases: minz1/election_bot

Add general voting using the instant-runoff system

Choose a tag to compare

@minz1 minz1 released this 03 May 00:15
electionbot: add general vote with ranked voting

* Based on the instant-runoff system.

* Also, I added a "lite" registration for users who weren't registered.
  Everyone can do this final vote.

Move from FPTP to Runoff

Choose a tag to compare

@minz1 minz1 released this 02 May 00:21
electionbot: convert from a FPTP to Runoff voting system

* To do this, I added a rnominate command for the second stage.

* I split off many common operations into their own functions

* I also expanded the help message after neglecting it.

Add 'dropout' command

Choose a tag to compare

@minz1 minz1 released this 01 May 03:15
electionbot: add dropout command

* This command allows a user during stage 2 to dropout of the campaign,
  and transfer all of their votes to another user. They then can never
  be voted for again, and cannot have someone transfer their votes to them.

Fix mention parsing

Choose a tag to compare

@minz1 minz1 released this 30 Apr 23:39
electionbot: fix bug where some mentions don't get parsed

* When a user has a nickname, their mention starts with '<!@'
  Otherwise, it starts with '<@'.
  I only accounted for the nickname case. Now, the code checks
  for both, then removes it accordingly

Stage enforcement

Choose a tag to compare

@minz1 minz1 released this 30 Apr 23:15
electionbot: add stage enforcement

* Since not every option should be available at once,
  I added staging to gate each command.

Initial release

Choose a tag to compare

@minz1 minz1 released this 29 Apr 02:00
electionbot: add nomination function

* There is now a command that will allow a user to select one nominee from their party

* I rewrote the register command to be significantly less expensive.

* Added a command to get the top 5 nominees for each party