Files
plantid-discord-bot/config/runtime.exs
T
owenrees 0eddf04678 Projects and Diseases placeholder application commands (#17)
* fix module name in backup

* save projects to persistent_term

* retrieve projects on bot startup

* remove commented out code

* register project autocomplete

* placeholder text for project

* placeholder disease command
2025-12-08 08:53:48 +01:00

19 lines
632 B
Elixir

import Config
config :plantid_discord_bot,
start_time: DateTime.utc_now(),
guild_ids: [],
api: Nostrum.Api,
plantnet_api_key: System.get_env("PLANTNET_API_KEY"),
fileserver_url: System.get_env("PLANTID_FILESERVER_URL", "http://localhost:4321"),
metrics_webhook_url: System.get_env("PLANTID_LOGS_DISCORD_WEBHOOK_URL"),
dev_guild_id: System.get_env("DISCORD_DEV_GUILD_ID")
config :nostrum,
token: System.get_env("PLANTID_DISCORD_BOT_TOKEN")
config :logger, :webhook_logger,
webhook_url: System.get_env("PLANTID_LOGS_DISCORD_WEBHOOK_URL"),
level: :error,
bot_token: System.get_env("PLANTID_DISCORD_BOT_TOKEN")