Current section
Files
Jump to
Current section
Files
lib/butler_cowsay.ex
defmodule Butler.Cowsay do
use Butler.Plugin
@usage """
cowsay: returns your text input as a cow
"""
respond(~r/cowsay (.*)$/, conn, [_all, say]) do
resp_string = say |> Cowsay.say
reply conn, code(resp_string)
end
end