Code Monkey home page Code Monkey logo

Comments (7)

lizhi1989 avatar lizhi1989 commented on September 26, 2024 1

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.

lizhi1989 avatar lizhi1989 commented on September 26, 2024 1

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.

KeesCBakker avatar KeesCBakker commented on September 26, 2024

So the bot does react to it's name, but not to the alias?

from hubot-command-mapper.

KeesCBakker avatar KeesCBakker commented on September 26, 2024

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.

lizhi1989 avatar lizhi1989 commented on September 26, 2024

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.

KeesCBakker avatar KeesCBakker commented on September 26, 2024

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.

KeesCBakker avatar KeesCBakker commented on September 26, 2024

Added the change to the readme. Published a new version.

from hubot-command-mapper.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.