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

Fix puppet example and usage #22

Merged
merged 1 commit into from
May 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}