diff --git a/lib/HahaCommands/say.ex b/lib/HahaCommands/say.ex new file mode 100644 index 0000000..4ed6620 --- /dev/null +++ b/lib/HahaCommands/say.ex @@ -0,0 +1,21 @@ +defmodule HahaYes.Commands.Say do + @moduledoc """ + Repeat back what the user said + """ + + alias Nostrum.Api + + @doc """ + Repeat back what the user said + + ## Example + + User: h3h3 say how are you + + Bot: how are you + """ + + def execute(msg, _ws_state, args) do + Api.create_message(msg.channel_id, Enum.join(args, " ")) + end +end