summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs6
-rw-r--r--config/runtime.exs5
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"),