Skip to content

Slowki/chattermouth

Repository files navigation

chattermouth

Documentation CI

A library for text based bot interactions.

Example

async def maybe_apply_change(change_id: str) -> None:
    try:
        if await ask_yes_or_no("Do you want to apply that change now?"):
            # We got a "yes" type response.
            apply_change(change_id)
        else:
            # We got a "no" type response.
            await tell(f"Okay, if you want to apply it later run 'corp-apply-change {change_id}'.")
    except NoClassificationError:
        # We got something that wasn't a "yes" or a "no" type of message.
        await tell("Sorry, I didn't understand that")

Supported Backends

  • CLI
  • Slack

About

A library for text based bot interactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages