Skip to content

Add ability to provide callbacks for different events #40

@gregsaab

Description

@gregsaab

At present, we only support handing app.mention by responding with a TigerAgent. The EventHarness should provide a means of handling different types of events, such as DMs. The EventHarness takes a TigerAgent, but it might be nice to support that usage as well as something like:

 harness = EventHarness(
        eon,
        app_mention=eon.respond
        message=persist_the_message_and_do_something_cool
    )

Note: would have to make sure the Slack App manifest contained the desired events. Also, might be nice to have automatically listen with a no-op handler on events that do not have an explicit callback as unhandled events in a bot will throw constant warnings.

See thread: https://iobeam.slack.com/archives/C09AF06P37B/p1758812450183099?thread_ts=1758811756.337849&cid=C09AF06P37B

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions