Skip to content

Add Message Listener support #236

Closed

Description

@Zabuzard

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 ).

Activity

  1. added this to the Improvement phase 1 milestone on Oct 30, 2021
  2. github-actions commented on Dec 17, 2021

    @github-actions

    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.

  3. Zabuzard commented on Dec 17, 2021

    @Zabuzard
    MemberAuthor

    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.

    This is actually still relevant, we need it eventually.

  4. self-assigned this
    on Jan 12, 2022
  5. Tais993 commented on Jan 12, 2022

    @Tais993
    Member

    What's the use case of this if #237 exists?

  6. Zabuzard commented on Jan 12, 2022

    @Zabuzard
    MemberAuthor

    What's the use case of this if #237 exists?

    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.

  7. Zabuzard commented on Jan 17, 2022

    @Zabuzard
    MemberAuthor

    I think it might be easier if I take this quickly with the vision I have in mind.

  8. linked a pull request that will close this issueAdd Message and Event receivers #345on Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpriority: major

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions