diff options
author | Simponic <loganhunt@simponic.xyz> | 2023-02-01 22:55:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 22:55:06 -0700 |
commit | 47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf (patch) | |
tree | 2682c4ee63fcf67db688bf61077419f521932012 /config | |
parent | a26256700d93392dfc92bfc6dc6842dac842cc15 (diff) | |
download | chessh-47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf.tar.gz chessh-47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf.zip |
Discord threads (#16)
* Add initial support for discord threads
* Finish thread creation
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 6 | ||||
-rw-r--r-- | config/runtime.exs | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/config/config.exs b/config/config.exs index e732049..5ada6e6 100644 --- a/config/config.exs +++ b/config/config.exs @@ -15,7 +15,7 @@ config :chessh, RateLimits, player_public_keys: 15, create_game_ms: 60 * 1000, create_game_rate: 3, - discord_notification_rate: 3, + discord_notification_rate: 30, discord_notification_rate_ms: 1000 config :chessh, Web, @@ -24,8 +24,8 @@ config :chessh, Web, discord_scope: "identify" config :chessh, DiscordNotifications, - game_move_notif_delay_ms: 3 * 60 * 1000, - game_created_notif_delay_ms: 30 * 1000, + game_move_notif_delay_ms: 10 * 1000, + game_created_notif_delay_ms: 10 * 1000, reschedule_delay: 5 * 1000 config :joken, default_signer: "secret" diff --git a/config/runtime.exs b/config/runtime.exs index 684e48e..5da6d47 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -5,8 +5,9 @@ config :chessh, config :chessh, DiscordNotifications, looking_for_games_role_mention: "<@&#{System.get_env("NEW_GAME_PINGABLE_ROLE_ID")}>", - discord_game_move_notif_webhook: System.get_env("REMIND_MOVE_CHANNEL_WEBHOOK"), - discord_new_game_notif_webhook: System.get_env("NEW_GAME_CHANNEL_WEBHOOK") + remind_move_channel_id: System.get_env("REMIND_MOVE_CHANNEL_ID"), + discord_bot_token: System.get_env("DISCORD_BOT_TOKEN"), + new_game_channel_id: System.get_env("NEW_GAME_CHANNEL_ID") config :chessh, Web, discord_client_id: System.get_env("DISCORD_CLIENT_ID"), |