xmppjs / hubot-xmpp

XMPP adapter for Hubot
181 stars 103 forks source link

Shortcut/alias for hubot in MUCs possible? #116

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi,

not really an "issue" but I know from other bot engines that it is possible to "call" the bot not only by its name but with a "shortcut", example:

Instead of MyBot ship it it is possible to execute the same with ! ship it so ! is an alias for MyBot (and no need to type the bot name in MUCs).

I thought HUBOT_XMPP_PM_ADD_PREFIX enables such a shortcut but honestly I don't understand what HUBOT_XMPP_PM_ADD_PREFIX does. If HUBOT_XMPP_PM_ADD_PREFIX enables a hubot alias it doesn't work in my case (neither in MUC nor in single chat).

Thx in advance for any help sj7

markstory commented 7 years ago

You should be able to use the alias options of hubot to do this.

ghost commented 7 years ago

Thx @markstory - "-l", "--alias ALIAS", "Enable replacing the robot's name with alias" works great. Just * does not work as alias.

/solved