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
+7 -17
View File
@@ -4,23 +4,13 @@ config :plantid_discord_bot,
start_time: DateTime.utc_now(),
guild_ids: [],
api: Nostrum.Api,
max_results: 5,
score_threshold: 0.3,
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
port: 4321,
guild_request_limit_per_day: 20,
image_path: "priv/static",
fileserver_url: "http://localhost:4321",
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
invite:
"https://discord.com/api/oauth2/authorize?client_id=948227126094598204&permissions=19520&scope=bot"
config :plantid_discord_bot, PlantIdDiscordBot.Scheduler,
jobs: [
{"@daily", {PlantIdDiscordBot.RateLimiter, :reset_counters, []}}
]
fileserver_url: System.get_env("PLANTID_FILESERVER_URL", "http://localhost:4321")
config :nostrum,
token: System.get_env("PLANTID_DISCORD_BOT_TOKEN"),
ffmpeg: nil
token: System.get_env("PLANTID_DISCORD_BOT_TOKEN")
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")