21 lines
274 B
Elixir
21 lines
274 B
Elixir
defmodule HahaYes.Commands.Ping do
|
|
@moduledoc """
|
|
Ping command
|
|
"""
|
|
|
|
alias Nostrum.Api
|
|
|
|
@doc """
|
|
Reply with a simple "Pong!"
|
|
|
|
## Example
|
|
|
|
User: h3h3 ping
|
|
|
|
Bot: Pong!
|
|
"""
|
|
|
|
def execute(msg) do
|
|
Api.create_message(msg.channel_id, "Pong!")
|
|
end
|
|
end
|