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
+6 -5
View File
@@ -3,18 +3,19 @@ import Config
config :plantid_discord_bot,
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",
plantnet_api_base_url: "https://my-api.plantnet.org/v2",
source: "https://github.com/TheRealOwenRees/plantid-discord-bot",
invite:
"https://discord.com/api/oauth2/authorize?client_id=948227126094598204&permissions=19520&scope=bot"
config :nostrum,
token: System.get_env("PLANTID_DISCORD_BOT_TOKEN"),
ffmpeg: nil
config :plantid_discord_bot, PlantIdDiscordBot.Scheduler,
jobs: [
{"@daily", {PlantIdDiscordBot.RateLimiter, :reset_counters, []}}
]
import_config "#{config_env()}.exs"