c1e6612405
Introduce MobilizonWeb.API namespace Signed-off-by: Thomas Citharel <tcit@tcit.fr> Format Signed-off-by: Thomas Citharel <tcit@tcit.fr> WIP Signed-off-by: Thomas Citharel <tcit@tcit.fr> remove unneeded code Signed-off-by: Thomas Citharel <tcit@tcit.fr> Fix tests Signed-off-by: Thomas Citharel <tcit@tcit.fr> Fix warnings Signed-off-by: Thomas Citharel <tcit@tcit.fr>
16 lines
276 B
Elixir
16 lines
276 B
Elixir
defmodule Mix.Tasks.Toot do
|
|
@moduledoc """
|
|
Creates a bot from a source
|
|
"""
|
|
|
|
use Mix.Task
|
|
require Logger
|
|
|
|
@shortdoc "Toot to an user"
|
|
def run([from, content]) do
|
|
Mix.Task.run("app.start")
|
|
|
|
MobilizonWeb.API.Comments.create_comment(from, content)
|
|
end
|
|
end
|