Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Conversation

@zapobyte
Copy link
Contributor

@zapobyte zapobyte commented Feb 15, 2020

❗️ This branch includes PR refactor #54 by mistake 😕

Added hidden vote command. This ticket can close #30

Both timed and normal poll can now use hidden concept. The commands now requires an extra argument which defines the hidden status of the vote.
On tpoll timed poll command if the second argument is set to 'yes' it will act as an hidden timed poll. If it's set to 'no' it will act as a normal timed poll.
Same workflow for poll command just that it's the first argument not second.

@zapobyte zapobyte requested review from luchaos and meleu February 15, 2020 05:10
@meleu
Copy link
Contributor

meleu commented Feb 15, 2020

People are already used with the !poll question option1 option2 optionN notation.

Will they still be able to use such notation?

After a quick glance on the code, it seems like the yes or no as the first argument is mandatory. Am I right?

(BTW, sorry for not being able to review your other PRs. I'm kinda busy with other projects, but fortunately they're JS projects. Hope to be able to give more attention here soon.)

@zapobyte
Copy link
Contributor Author

zapobyte commented Feb 15, 2020

this still works the same ,the only thing that changed for both commands is a new argument, which representes the hidden state and it is mandatory.
commands will now be as tpoll time hidden question option1 option2 optionN & poll hidden question option1 option2 optionN.

@meleu
Copy link
Contributor

meleu commented Feb 17, 2020

oh, changing the way the users are used to call the command is not something I would like to merge.

One solution I can think is making it like a classic UNIX command and add the possibility to use --hidden as the first argument (it would be optional) and if such option is present, the votes will be hidden.

The other solution would be to create brand new commands for hidden votes (!hiddenpoll, !hpoll, or something.)

@zapobyte
Copy link
Contributor Author

Then the best would be to use a new command I would say. The command could be called htpoll / hpoll form hidden poll ?:)

@meleu
Copy link
Contributor

meleu commented Feb 17, 2020

The command could be called htpoll / hpoll form hidden poll ?:)

Looks good.
Probably the long form being the "official name" and short one being an alias.
Like hiddenpoll -> hpoll
and hiddentimedpoll -> htpoll

Thanks dude! 😉

Zaporojan Victor added 2 commits February 18, 2020 00:25
…ption1 option2 optionN and alias hiddentimedpoll

- reverted poll and 	poll commands
- changed messaged on poll command description(removed the 'usless' word from description :P )
@zapobyte
Copy link
Contributor Author

zapobyte commented Feb 18, 2020

  • reverted poll and tpoll commands
  • added hidden timed poll command as htpoll seconds question option1 option2 optionN and alias hiddentimedpoll
  • changed messaged on poll command description(removed the 'usless' word from description 😄 )

a hidden poll command was not implemented due to it being complicated and not sure if a normal poll should be hidden. for example to have a hidden poll command the normal poll command should be changed to reflect the way time poll shows the end result of the reactions when the times out and do a lot of other checkups and more logic that would need implemented. might re-look into this some other time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hidden Vote concept

2 participants