Current section

Files

Jump to
butler lib butler plugins test_count.ex
Raw

lib/butler/plugins/test_count.ex

defmodule Butler.Plugins.TestCount do
use Butler.Plugin
def respond("test count", tests) do
count = Enum.count(tests)
{:reply, "The count is #{count}", tests}
end
def hear("test", tests) do
{:noreply, ["test"|tests]}
end
end