You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command system, as of now, only supports SlashCommands. However, we slowly get more and more commands with a need to listen for any incoming message.
The command system should offer a generic way to register message listeners, which should also be combinable with SlashCommands and other things (for example if using the interfaces).
The scope of this issue is only to add message listening support, not other events (such as user banned, message deleted, ...), just message arrived. Maybe also message edit events.
Examples for such commands are the !bytecode command (#207 ) and free-command system (#221 ).
This issue is about a more specific and less broad implementation, namely just "new message has been posted". Similar to why we added SlashCommand in the first place and not just went with the fire-and-forget "all events" solution.
I just figure that the most frequently used cases are:
slash command
react to a message being send
and then a few "okay, we need all the events" use cases. Hence why I think a system that supports those 3 things individually (and maybe also combinable), makes sense.
Activity
Moved routines and listeners inside Commands
Moved routines and listeners inside Commands
Moved routines and listeners inside Commands
Moved routines and listeners inside Commands
github-actions commentedon Dec 17, 2021
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Zabuzard commentedon Dec 17, 2021
This is actually still relevant, we need it eventually.
Tais993 commentedon Jan 12, 2022
What's the use case of this if #237 exists?
Zabuzard commentedon Jan 12, 2022
This issue is about a more specific and less broad implementation, namely just "new message has been posted". Similar to why we added
SlashCommandin the first place and not just went with the fire-and-forget "all events" solution.I just figure that the most frequently used cases are:
and then a few "okay, we need all the events" use cases. Hence why I think a system that supports those 3 things individually (and maybe also combinable), makes sense.
Zabuzard commentedon Jan 17, 2022
I think it might be easier if I take this quickly with the vision I have in mind.