Skip to content

Implement command function. #2

@sli

Description

@sli

I've forked this repo and added support for the command function in this form:

command "start" do
  user <- getFrom
  -- and so on

I was originally going to just submit a PR, but I thought it may not be needed since the working implementation is identical to the implementation for hears. That is, the above code is functionally identical to the following:

hears "/start" do
  user <- getFrom
  -- and so on

In short I'm not totally convinced that this library really needs the command function, since it doesn't really add anything new, so I'm posting this issue mostly to find out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions