diff options
author | Simponic <elizabeth.hunt@simponic.xyz> | 2023-02-03 12:58:19 -0700 |
---|---|---|
committer | Simponic <elizabeth.hunt@simponic.xyz> | 2023-02-03 12:58:19 -0700 |
commit | 2bd03144daebfc0b43e32a4663ddc29cf7ad2f26 (patch) | |
tree | 213eda30218550c03ec6509bf2ff16e06b554e5e | |
parent | 8b13802918a22d1de205e4aa0f8ad6bf49949d70 (diff) | |
download | chessh-2bd03144daebfc0b43e32a4663ddc29cf7ad2f26.tar.gz chessh-2bd03144daebfc0b43e32a4663ddc29cf7ad2f26.zip |
Increase move notificatino delay, decrease creation notification delay, and surround username in quotes for ssh config
-rw-r--r-- | config/config.exs | 6 | ||||
-rw-r--r-- | front/src/routes/home.jsx | 2 | ||||
-rw-r--r-- | lib/chessh/discord/notifier.ex | 5 |
3 files changed, 9 insertions, 4 deletions
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 _ -> |