Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a "bot command" callback #15

Open
byrnereese opened this issue May 21, 2022 · 1 comment
Open

Create a "bot command" callback #15

byrnereese opened this issue May 21, 2022 · 1 comment

Comments

@byrnereese
Copy link

Many bots support a textual interface in which a user converses in the following way:

@botName command_name argument1 argument 2

It is not dissimilar to a command-line interface. Let's create a similar mechanism for bots, whereby bots can register the commands and arguments they understand, and if a user interfaces with a bot outside of that known syntax, the framework can reply automatically with an error message.

It would work similar to the argv module: https://www.npmjs.com/package/argv

@zxdong262
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants