【文件属性】:
文件名称:斜杠命令:简单的斜杠命令解析
文件大小:6KB
文件格式:ZIP
更新时间:2021-02-04 06:09:52
parsing slash-commands ParsingJavaScript
斜杠命令
一个用JavaScript编写的简单斜杠命令解析模块。 换句话说,是一个解析字符串并返回一个对象的函数,该对象将命令关键字与命令主体分开。
例:
slashCommand ( '/mycommand This is the command body' ) ;
slashCommand()返回以下对象:
{
slashcommand : '/mycommand' , // command(s) as stated
command : 'mycommand' , // main command name (first in string)
subcommands :
【文件预览】:
slash-command-master
----.jshintrc(54B)
----.travis.yml(151B)
----test()
--------test.js(4KB)
----LICENSE.md(1KB)
----README.md(4KB)
----.gitignore(669B)
----index.js(683B)
----package.json(988B)