summaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-02-01 14:57:14 -0700
committerGitHub <noreply@github.com>2023-02-01 14:57:14 -0700
commitfe5f5b77fcc3ef24516866561f9b54ac07663ad6 (patch)
treeba63998ec306983d87594195d60ecb0abb6ea5d1 /config/runtime.exs
parent324d041d5c5cbcdf0083dcd802144a57443789f6 (diff)
downloadchessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.tar.gz
chessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.zip
Discord notifs (#14)
* Add role id to config * Add discord notifications for games * Fix discord discriminant tests
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/runtime.exs b/config/runtime.exs
index 5e03614..684e48e 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -3,6 +3,11 @@ import Config
config :chessh,
ssh_port: String.to_integer(System.get_env("SSH_PORT", "34355"))
+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")
+
config :chessh, Web,
discord_client_id: System.get_env("DISCORD_CLIENT_ID"),
discord_client_secret: System.get_env("DISCORD_CLIENT_SECRET"),