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

PoC: Only one event listener for all commands #1152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

89Q12
Copy link

@89Q12 89Q12 commented Jan 12, 2024

Currently for each command a new event listener is added, this is rather inconvenient as one easily reaches more than 10 handlers this way.

Having a map, that contains each command(Name, handler function), enables us to only use one event listener for all commands.

Therefore I made this quick PoC, I'm open to discussion and suggestions :)

References: #1002

@89Q12 89Q12 marked this pull request as ready for review February 18, 2024 16:44
@89Q12
Copy link
Author

89Q12 commented Feb 18, 2024

I fixed the issues with my PoC and it is now executable, maybe if you could take another look?

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.

1 participant