Skip to content

Commit

Permalink
Merge 9227d4e into 230a4c2
Browse files Browse the repository at this point in the history
  • Loading branch information
sjayanna committed Sep 2, 2016
2 parents 230a4c2 + 9227d4e commit 77931dc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ config :alfred, Alfred.Robot,
responders: [
{Hedwig.Responders.Help, []},
{Hedwig.Responders.GreatSuccess, []},
{Hedwig.Responders.SuperFast, []},
{Hedwig.Responders.ShipIt, []}
]
```
Expand Down Expand Up @@ -136,6 +137,7 @@ scrogson> alfred help
alfred> alfred help <query> - Displays all help commands that match <query>.
alfred help - Displays all of the help commands that alfred knows about.
great success - Displays a random Borat image.
that was superfast - Display a fast gif animation.
ship it - Display a motivation squirrel
scrogson>
```
Expand Down
1 change: 1 addition & 0 deletions lib/mix/tasks/hedwig.gen.robot.ex
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ defmodule Mix.Tasks.Hedwig.Gen.Robot do
responders: [
{Hedwig.Responders.Help, []},
{Hedwig.Responders.GreatSuccess, []},
{Hedwig.Responders.SuperFast, []},
{Hedwig.Responders.ShipIt, []}
]
"""
Expand Down
18 changes: 18 additions & 0 deletions responders/super_fast.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
defmodule Hedwig.Responders.SuperFast do
@moduledoc false

use Hedwig.Responder

@links [
"http://media.tenor.co/images/76708e6143b45195612c69086358c138/raw",
"http://graphics.desivalley.com/wp-content/uploads/2010/08/superfast-cat.gif"
]

@usage """
that was superfast - Display a fast gif animation.
"""

hear ~r/that was superfast(!)?/i, msg do
reply msg, random(@links)
end
end
1 change: 1 addition & 0 deletions test/mix/tasks/hedwig.gen.robot_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ defmodule Mix.Tasks.Ecto.Gen.RepoTest do
responders: [
{Hedwig.Responders.Help, []},
{Hedwig.Responders.GreatSuccess, []},
{Hedwig.Responders.SuperFast, []},
{Hedwig.Responders.ShipIt, []}
]
Expand Down

0 comments on commit 77931dc

Please sign in to comment.