Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sendPoll functionality #72

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

BenKoerber
Copy link
Contributor

Added functionality to send polls

  • add function sendPoll to commands.ts
  • altered configureCommands in index.ts in order to pickup new function

Also added an example for using sendPoll with npm
=> Caution: I needed to add the double dash ("--") before send-poll in order for the options to be picked up by commander.js
=> Please adapt for npx usage

@robvanderleek
Copy link
Owner

Hi @BenKoerber 👋

That's a great addition, thanks!

I've changed the poll choices to a repeatable option and added a bit of documentation in a new branch.
What do you think of this?

If you agree (I think) I can merge my changes in your PR and merge it to main.

KR, Rob

@BenKoerber
Copy link
Contributor Author

That is just perfect!
Thanks for considering this feature and also for putting in the effort to correct/enhance my code suggestion.

@robvanderleek robvanderleek merged commit a2b682d into robvanderleek:main Jan 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants