Skip to content

Commit

Permalink
dnd fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
perzanko committed Sep 4, 2019
1 parent c056f7e commit f33ab69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/devton_slack/rtm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ defmodule DevtonSlack.Rtm do
{:ok, state}
end

def handle_event(message = %{type: "message"}, slack, state)
when String.contains?(message.text, "Do Not Disturb"), do:
{:ok, state}
def handle_event(message = %{type: "message"}, slack, state) do
try do
command = Cli.handle_command(message.text)
Expand Down

0 comments on commit f33ab69

Please sign in to comment.