GATO-Framework / shappie

AI powered discord bot
MIT License
10 stars 7 forks source link

Shappie needs a polling capability so he can help us reach consensus #60

Open slouck opened 1 year ago

slouck commented 1 year ago

Shappie needs the ability to run a poll in the discord server. Likely we'd want to model this after something like a "PollBot" which exists in standalone today integrating the key features and interface into Shappie. We'd likely want to reserve the ability to create polls to certain roles, only allow polls in a secure polls channel and would need to be able to ensure a person can only vote once on a given poll instance. Adding a notification feature and a timer would be icing on the cake if possible.

rabyj commented 1 year ago

At the very least, being able to extract who reacted what on a proposal can enable us to compute if the proposal passed quickly. As people who react two things would be counted a abstaining.

This could help, maybe https://stackoverflow.com/questions/71901155/how-do-i-fetch-all-reactions-from-a-specific-message-discord-js

rabyj commented 1 year ago

This seems to tightly related to #18, is there a reason it's separate?

niknal357 commented 1 year ago

Have dialog with user to get more details and check for channel to post in to handle permissions. Log reactions in database. Log polls in database to be able to track and remove multi-votes.