 defmodule TougouBot.Debug do
   use Alchemy.Cogs
+  alias Alchemy.Embed
+  import Embed
 
   Cogs.def ping do
     Cogs.say "pong!"

  defp command_descriptions do
    descriptions = 
    %{
      "ping" => "!ping: tougou-chan should reply with pong!",
      "status" => "!status: tougou-chan will tell you about her running version, "<>
                  "her uptime, and her memory/io stats.",
      "jisho" => "!jisho <word>: tougou-chan will check jisho for the first word "<>
                  "you give her and tell you its reading/meaning.",
      "vndb" => "!vndb <term>: tougou-chan will give you the most popular vn "<>
                "that she can find using the term on vndb.",
      "vndbrng" => "!vndbrng: tougou-chan will give you a random vn from vndb",
      "tag" => "!tag <tag>: tougou-chan will attempt to recall the content "<>
                "associated with the given tag",
      "ntag" => "!ntag <tag> <content>: tougou-chan will learn and remember"<>
                " a new tag->content pair.",
      "dtag" => "!dtag <tag>: tougou-chan will forget the specified tag",
      "atags" => "!atags: gives a list of all `tags` that tougou-chan knows",
      "help" => "!help: gives a list of all commands and their descriptions"
    }
  end
end

  Cogs.def help do
    cmds = Enum.map(Cogs.all_commands, fn ({k, _}) -> k end)
    #Cogs.say "```"<>descriptions_from_cmds(cmds)<>"```"
    %Embed{ color: 0x8B4513, 
          fields: List.wrap(Enum.map(command_descriptions, 
                              fn({k, v}) -> %Embed.Field{name: "!"<>k, value: v} end)) }
    |> Embed.send
  end

  defp descriptions_from_cmds([]) do
