Comments (7)
i have similar issue where we require to talk to bot using bot's alias but it response with invalid syntax.
from hubot-command-mapper.
So the bot does react to it's name, but not to the alias?
Ya, I had one bot using hubot-rocketchat-boilerplate with following name and alias.
export HUBOT_NAME=kelvinbot
export HUBOT_ALIAS=john
it react to "kelvinbot count from 10 to 15".
but not "john count from 10 to 15"
It reply with "Invalid syntax"
from hubot-command-mapper.
So the bot does react to it's name, but not to the alias?
from hubot-command-mapper.
I've looked into the problem and saw that the name and alias were not mapped equally. I added the alias to the regular expression matching as well. I've updated to package to version 2.0.3. Can you verify if these changes work for you?
from hubot-command-mapper.
I've looked into the problem and saw that the name and alias were not mapped equally. I added the alias to the regular expression matching as well. I've updated to package to version 2.0.3. Can you verify if these changes work for you?
Thanks it works now.
Just that one of your example (count from example) in github is broken.
the match index is now 4 & 5.
from hubot-command-mapper.
Cool... I'll look into it. It really shows how fragile regex parsing is (that's why I included the named regex package).
from hubot-command-mapper.
Added the change to the readme. Published a new version.
from hubot-command-mapper.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-command-mapper.