Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from fabioxgn/puppet
Browse files Browse the repository at this point in the history
Fix puppet example and usage
  • Loading branch information
fabioxgn committed May 19, 2015
2 parents 46aa206 + 688cbd6 commit a821874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To see what I can do, type **!help** in the channel or send me a private message
* **!gif**: Posts a random gif url from [giphy.com][giphy.com]. Try it with: **!gif cat**
* **!catgif**: Posts a random cat gif url from [thecatapi.com][thecatapi.com]
* **!godoc**: Searches packages in godoc.org. Try it with: **!godoc net/http**
* **!puppet**: Allows you to send messages through the bot: Try it with: **!puppet #go-bot Hello!**
* **!puppet**: Allows you to send messages through the bot: Try it with: **!puppet say #go-bot Hello!**

### Passive commands (triggers)

Expand Down
5 changes: 3 additions & 2 deletions commands/puppet/puppet_command.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package puppet

import (
"github.com/fabioxgn/go-bot"
"strings"

"github.com/fabioxgn/go-bot"
)

const (
Expand Down Expand Up @@ -34,6 +35,6 @@ func init() {
bot.RegisterCommandV2(
"puppet",
"Allows you to send messages through the bot",
"say|me #channel your message",
"say #channel your message",
sendMessage)
}

0 comments on commit a821874

Please sign in to comment.