Skip to content

Commit

Permalink
Updated README for DBL config
Browse files Browse the repository at this point in the history
  • Loading branch information
zastrixarundell committed Apr 15, 2020
1 parent c901be5 commit 14d3cc4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ config :catlixir,
the_cat_api_key: System.get_env("THE_CAT_API_KEY"),
invite_url: System.get_env("DISCORD_BOT_INVITE_URL"),
support_url: System.get_env("DISCORD_BOT_SUPPORT")

# Configuration for DiscordBotList
config :discord_bot_list,
id: System.get_env("DBL_ID"),
token: System.get_env("DBL_TOKEN")

config :catlixir, Catlixir.Scheduler,
jobs: [
{"* * * * *", &Catlixir.Scheduler.update_dbl_status/0}
]
```
Or if you want to have checks in the config:
```elixir
Expand Down Expand Up @@ -89,4 +99,14 @@ config :catlixir,
the_cat_api_key: the_cat_api_key,
invite_url: System.get_env("DISCORD_BOT_INVITE_URL"),
support_url: System.get_env("DISCORD_BOT_SUPPORT")

# Configuration for DiscordBotList
config :discord_bot_list,
id: System.get_env("DBL_ID"),
token: System.get_env("DBL_TOKEN")

config :catlixir, Catlixir.Scheduler,
jobs: [
{"* * * * *", &Catlixir.Scheduler.update_dbl_status/0}
]
```
3 changes: 2 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ config :catlixir,
invite_url: System.get_env("DISCORD_BOT_INVITE_URL"),
support_url: System.get_env("DISCORD_BOT_SUPPORT")

# Configuration for DiscordBotList
config :discord_bot_list,
id: System.get_env("DBL_ID"),
token: System.get_env("DBL_TOKEN")

config :catlixir, Catlixir.Scheduler,
jobs: [
{"* * * * *", fn -> Catlixir.Scheduler.update_dbl_status() end}
{"* * * * *", &Catlixir.Scheduler.update_dbl_status/0}
]

0 comments on commit 14d3cc4

Please sign in to comment.