From fe5f5b77fcc3ef24516866561f9b54ac07663ad6 Mon Sep 17 00:00:00 2001 From: Simponic Date: Wed, 1 Feb 2023 14:57:14 -0700 Subject: Discord notifs (#14) * Add role id to config * Add discord notifications for games * Fix discord discriminant tests --- config/runtime.exs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/runtime.exs') 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"), -- cgit v1.2.3-70-g09d2