From ed0de7e81feb0981a381ec95272ee0a0278acebd Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Sat, 6 May 2023 10:52:20 -0700 Subject: send notification only from process where player joined and when discord thread id hasn't been created, set prod log level to info for better debugging --- lib/chessh/discord/notifier.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/chessh/discord') diff --git a/lib/chessh/discord/notifier.ex b/lib/chessh/discord/notifier.ex index 93d27f1..f4fc4fa 100644 --- a/lib/chessh/discord/notifier.ex +++ b/lib/chessh/discord/notifier.ex @@ -59,7 +59,8 @@ defmodule Chessh.DiscordNotifier do %Game{ status: :continue, dark_player: %Player{discord_id: dark_player_discord_id}, - light_player: %Player{discord_id: light_player_discord_id} + light_player: %Player{discord_id: light_player_discord_id}, + discord_thread_id: nil } = game -> game = maybe_put_new_thread_on_game(game) -- cgit v1.2.3-70-g09d2