Increase move notificatino delay, decrease creation notification delay, and surround username in quotes for ssh config

This commit is contained in:
Elizabeth Hunt 2023-02-03 12:58:19 -07:00
parent 8b13802918
commit 2bd03144da
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
3 changed files with 9 additions and 4 deletions

View File

@ -24,9 +24,9 @@ config :chessh, Web,
discord_scope: "identify" discord_scope: "identify"
config :chessh, DiscordNotifications, config :chessh, DiscordNotifications,
game_move_notif_delay_ms: 10 * 1000, game_move_notif_delay_ms: 20 * 1000,
game_created_notif_delay_ms: 10 * 1000, game_created_notif_delay_ms: 5 * 1000,
reschedule_delay: 5 * 1000 reschedule_delay: 3 * 1000
config :joken, default_signer: "secret" config :joken, default_signer: "secret"

View File

@ -10,7 +10,7 @@ export const Home = () => {
const sshConfig = `Host chessh const sshConfig = `Host chessh
Hostname ${process.env.REACT_APP_SSH_SERVER} Hostname ${process.env.REACT_APP_SSH_SERVER}
Port ${process.env.REACT_APP_SSH_PORT} Port ${process.env.REACT_APP_SSH_PORT}
User ${player?.username} User "${player?.username}"
PubkeyAuthentication yes`; PubkeyAuthentication yes`;
return ( return (
<> <>

View File

@ -165,6 +165,11 @@ defmodule Chessh.DiscordNotifier do
make_discord_api_call(:put, 'channels/#{thread_id}/thread-members/#{id}') make_discord_api_call(:put, 'channels/#{thread_id}/thread-members/#{id}')
end) end)
post_discord(
thread_id,
"This private thread is used to communicate move notifications. It will be destroyed on game end."
)
thread_id thread_id
_ -> _ ->