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

hubot only replies to commands if his name is prefixed (heroku) #23

Closed
searls opened this issue Oct 25, 2011 · 3 comments
Closed

hubot only replies to commands if his name is prefixed (heroku) #23

searls opened this issue Oct 25, 2011 · 3 comments

Comments

@searls
Copy link
Contributor

searls commented Oct 25, 2011

Using the 1.0.2 tar download and following the instructions on a fresh cedar stack.

Stating "help" yields the reply you'd expect, given the scripts included:

<user> is a badass guitarist - assign a role to a user
<user> is not a badass guitarist - remove a role from a user
animate me <query>  - The same thing as `image me`, except adds a few
convert me <expression> to <units> - Convert expression to given units.
help - Displays all of the help commands that Hubot knows about.
image me <query>    - The Original. Queries Google Images for <query> and
map me <query> - Returns a map view of the area returned by `query`.
math me <expression> - Calculate the given expression.
mustache me <query> - Searches Google Images for the specified query and
mustache me <url>   - Adds a mustache to the specified URL.
show storage - Display the contents that are persisted in redis
show users - Display all users that hubot knows about
translate me <phrase> - Searches for a translation for the <phrase> and then
who is <user> - see what roles a user has
youtube me <query> - Searches YouTube for the query and returns the video

However, upon trying to execute each of the commands, Hubot only seems to respond to map me <query> and none of the others.

@searls
Copy link
Contributor Author

searls commented Oct 26, 2011

Okay, just updated to 1.0.3, and now my hubot ("doubot") will respond to each of the commands, however it will only respond to them if the command is prefixed with its name. I assume this isn't expected as he was responding to "map me" before the update.

I figured the Procfile has something to do with this, but that looks correct:

app: bin/hubot -a campfire -n doubot

The account's First name is "doubot", last name is blank. Thoughts?

@titanous
Copy link
Contributor

As you can see from ddefd04, this is intentional. hear listens to everything in the room, and respond only listens to messages directed at the bot.

@searls
Copy link
Contributor Author

searls commented Oct 26, 2011

ah, well then I'll just close this down. Thanks @titanous.

@searls searls closed this as completed Oct 26, 2011
technicalpickles pushed a commit that referenced this issue Apr 17, 2023

Unverified

This user has not yet uploaded their public signing key.
fix: express basicAuth
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