diff --git a/config/config.exs b/config/config.exs index 5ada6e6..bac2e14 100644 --- a/config/config.exs +++ b/config/config.exs @@ -24,9 +24,9 @@ config :chessh, Web, discord_scope: "identify" config :chessh, DiscordNotifications, - game_move_notif_delay_ms: 10 * 1000, - game_created_notif_delay_ms: 10 * 1000, - reschedule_delay: 5 * 1000 + game_move_notif_delay_ms: 20 * 1000, + game_created_notif_delay_ms: 5 * 1000, + reschedule_delay: 3 * 1000 config :joken, default_signer: "secret" diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx index c65d87d..3495d20 100644 --- a/front/src/routes/home.jsx +++ b/front/src/routes/home.jsx @@ -10,7 +10,7 @@ export const Home = () => { const sshConfig = `Host chessh Hostname ${process.env.REACT_APP_SSH_SERVER} Port ${process.env.REACT_APP_SSH_PORT} - User ${player?.username} + User "${player?.username}" PubkeyAuthentication yes`; return ( <> diff --git a/lib/chessh/discord/notifier.ex b/lib/chessh/discord/notifier.ex index 9006aab..41c79a3 100644 --- a/lib/chessh/discord/notifier.ex +++ b/lib/chessh/discord/notifier.ex @@ -165,6 +165,11 @@ defmodule Chessh.DiscordNotifier do make_discord_api_call(:put, 'channels/#{thread_id}/thread-members/#{id}') end) + post_discord( + thread_id, + "This private thread is used to communicate move notifications. It will be destroyed on game end." + ) + thread_id _ ->