config and use of env var changed

This commit is contained in:
Owen
2024-12-22 20:37:35 +01:00
committed by Owen Rees
parent c169eac2f7
commit 22cb7bf096
6 changed files with 26 additions and 39 deletions
+3 -5
View File
@@ -1,14 +1,12 @@
import Config
config :plantid_discord_bot,
api: Nostrum.Api
api: Nostrum.Api,
port: 4000
config :plantid_discord_bot, :environment, :prod
config :logger,
backends: [{PlantIdDiscordBot.DiscordLogger, :discord_logger}]
config :logger, :discord_logger,
webhook_url: System.get_env("PLANTID_LOGS_DISCORD_WEBHOOK_URL"),
level: :error,
bot_token: System.get_env("PLANTID_DISCORD_BOT_TOKEN")
config :logger, :discord_logger, level: :error