{"action":"created","issue":{"url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/36","labels_url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/36/comments","events_url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/36/events","html_url":"https://github.com/BlakeWilliams/Elixir-Slack/issues/36","id":128363065,"number":36,"title":"Issues using handle_info","user":{"login":"StevenNunez","id":325485,"avatar_url":"https://avatars.githubusercontent.com/u/325485?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenNunez","html_url":"https://github.com/StevenNunez","followers_url":"https://api.github.com/users/StevenNunez/followers","following_url":"https://api.github.com/users/StevenNunez/following{/other_user}","gists_url":"https://api.github.com/users/StevenNunez/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenNunez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenNunez/subscriptions","organizations_url":"https://api.github.com/users/StevenNunez/orgs","repos_url":"https://api.github.com/users/StevenNunez/repos","events_url":"https://api.github.com/users/StevenNunez/events{/privacy}","received_events_url":"https://api.github.com/users/StevenNunez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-24T00:23:59Z","updated_at":"2016-01-24T00:33:15Z","closed_at":null,"body":"Sending a generic message causes a `** (FunctionClauseError) no function clause matching in FitBot.SlackComm.websocket_info/3` error. Currently have a \r\n```\r\ndefmodule FitBot.SlackComm do\r\n  use Slack\r\n\r\n  def init(initial_state, slack) do\r\n    IO.puts \"Connected as #{slack.me.name}\"\r\n    {:ok, initial_state}\r\n  end\r\n\r\n  def handle_message(message = %{type: \"message\"}, slack, state) do\r\n    message_to_send = \"Received #{length(state)} messages so far!\"\r\n    send_message(message_to_send, message.channel, slack)\r\n\r\n    {:ok, state ++ [message.text]}\r\n  end\r\n\r\n  def handle_message(_message, _slack, state) do\r\n    {:ok, state}\r\n  end\r\n\r\n  def handle_info(message = {:test}, _slack, state) do\r\n    IO.puts(\"Got a message!\")\r\n    {:ok, state}\r\n  end\r\n  \r\n  def handle_close({:handler, :function_clause}, _, _), do: IO.puts Exception.format(:error, :function_clause, System.stacktrace)\r\nend\r\n```\r\n\r\nrunning\r\n```\r\n{:ok, slack_comm} = FitBot.SlackComm.start_link(\"token\", []) \r\nsend slack_comm, {:test}   \r\n```\r\nTriggers the error."},"comment":{"url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/comments/174238562","html_url":"https://github.com/BlakeWilliams/Elixir-Slack/issues/36#issuecomment-174238562","issue_url":"https://api.github.com/repos/BlakeWilliams/Elixir-Slack/issues/36","id":174238562,"user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T00:33:15Z","updated_at":"2016-01-24T00:33:15Z","body":"@StevenNunez Can you tell me which version you're using?"}}