Inspiration
What it does
A voting system that lets discord servers run Instant-runoff voting
How we built it
We used discord.py to create our bot We split the team in half, one working on the voting system algorithm and the other working on user interaction with the bot to increase productivity.
Challenges we ran into
We were unsure of what to do for the tiebreaker, so we went through the available wiki page, documentation available online and decided that we will use the random rule
For the anonymous voting, it took us a while to figure out how to send DM through the discord bot and take the user input from DM.
Currently, the $stop command that is supposed to stop all current voting processes isn't working as intended for certain cases. We are assuming that when bot is waiting for user input, it accepts $stop as user input instead of command. We are unsure how to stop it without either logging out of the bot and leaving the server. We tried to check for user input to not include command "$" but that didn't fix anything.
Accomplishments that we're proud of
We felt such satisfaction and feeling of accomplishment when we merged the discord bot section's work and the IRV section's work and they worked as we imaged
What we learned
How to make the bot wait for user input on discord, How to send and receive private messages, How IRV works, How to split the work between teammates.
What's next for DigitalVotingSystem
Figure out how to make the bot differentiate the commands and just regular input
Built With
- discord.py
- python
- repl.it

Log in or sign up for Devpost to join the conversation.