Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

Commit 08aaf31

Browse files
committed
Merge branch 'hotfix/20150420'
2 parents 378bb3e + 39559f4 commit 08aaf31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

google.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/danryan/hal"
1313
)
1414

15-
var whatAreHandler = hear(`what (are|is) (.*)`, "what [are|is] (query)", "Has the bot search for something", func(res *hal.Response) error {
15+
var whatAreHandler = hear(`what(are|is) (.*)`, "what [are|is] (query)", "Has the bot search for something", func(res *hal.Response) error {
1616
query := res.Match[2]
1717
URL, err := getSearchURL(query)
1818
if err != nil {

whois.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/danryan/hal"
1212
)
1313

14-
var whoisHandler = hear(`who\s?is ([A-Za-z0-9\-_\{\}\[\]\\]+)`, "who is (name)", "Find out who a user is", func(res *hal.Response) error {
14+
var whoisHandler = hear(`whois ([A-Za-z0-9\-_\{\}\[\]\\]+)`, "whois (name)", "Find out who a user is", func(res *hal.Response) error {
1515
name := res.Match[1]
1616
key := strings.ToUpper(name)
1717
val, err := res.Robot.Store.Get(key)
@@ -22,7 +22,7 @@ var whoisHandler = hear(`who\s?is ([A-Za-z0-9\-_\{\}\[\]\\]+)`, "who is (name)",
2222
return res.Send(fmt.Sprintf("%s is %s", name, string(val)))
2323
})
2424

25-
var isHandler = hear(`([^(who|remember)].+) is (.+)`, "(name) is (role)", "Tell Ash who the user is", func(res *hal.Response) error {
25+
var isHandler = hear(`(.+) is (.+)`, "(name) is (role)", "Tell Ash who the user is", func(res *hal.Response) error {
2626
name := res.Match[1]
2727
key := strings.ToUpper(name)
2828
role := res.Match[2]

0 commit comments

Comments
 (0)