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

Adding an exit parameter for WaiterMachine to exit from current state #79

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

prostomarkeloff
Copy link
Contributor

@prostomarkeloff prostomarkeloff commented Jun 17, 2024

✏️ Description ✏️

There was no way to look if the waiter machine is waiting for a message from a user. This is needed when cancelling a waiting or other fancy stuff.

The PR is too big cause of black formatting.

wm.is_waiting_for(bot.on.message, message.from_user.id)

🐛 Fixes # (issue)

📍 Type of change 📍

  • 🚀 New feature (non-breaking change which adds functionality) 🚀
  • 📝 This change requires a documentation update 📝

@timoniq
Copy link
Owner

timoniq commented Jun 17, 2024

Please use ruff instead of black formatting. Its configuration is already set up 👀

@timoniq
Copy link
Owner

timoniq commented Jun 17, 2024

Thanks 💋 topchik

@timoniq timoniq merged commit c0c6bba into timoniq:dev Jun 17, 2024
@prostomarkeloff prostomarkeloff changed the title Add the is_waiting_for method for WaiterMachine Adding an exit parameter for WaiterMachine to exit from current state Jun 17, 2024
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.

None yet

2 participants