Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrick committed May 16, 2021
1 parent 3582ab8 commit b91ca0e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion pkg/chatbot/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,25 @@ func runCommand(user *users.User, message string) {

// any of these should trigger the location command
//TODO: add support for: "where is this", "where are we", "where are you"
case "!tripbot", "!location", "!locton", "!locaton", "!locatoion", "1location", "!city", "!town":
// foo := []string{
// "!tripbot",
// "!location",
// "!city",
// "!town",
// "!where",
// "!loacation",
// "!loation",
// "!loc",
// "!locatioin"
// "!locatoion",
// "!locaton",
// "!loclistion",
// "!locton",
// "1location",
// "¡location",
// }
// spew.Dump(foo)
case "!tripbot", "!location", "!locton", "!locaton", "!locatoion", "!loation", "1location", "!city", "!town":
if user.HasCommandAvailable() {
locationCmd(user)
} else {
Expand Down

0 comments on commit b91ca0e

Please sign in to comment.