Skip to content

Commit

Permalink
Add metricity config to the bot
Browse files Browse the repository at this point in the history
This will only be used by users that want to run metricity at the same time, since we need to give metricity config vars.
  • Loading branch information
ChrisLovering committed Sep 13, 2021
1 parent 26b7c52 commit 12e9cca
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -49,7 +49,7 @@ services:
DATABASE_URI: postgres://pysite:pysite@postgres/metricity
USE_METRICITY: ${USE_METRICITY-false}
volumes:
- ./config.toml:/metricity/config.toml
- ./metricity-config.toml:/metricity/config.toml

snekbox:
<< : *logging
Expand Down
47 changes: 47 additions & 0 deletions metricity-config.toml
@@ -0,0 +1,47 @@
# If a value is set to a dictionary with a key named env the variable is replaced
# at runtime with the value specified in that environment variable. If the variable
# also has an optional attribute set then it will be set as None if no environment
# variable is set.

[python]
# Sets the root log level.
log_level = "INFO"

# Sets the logging level used for discord.py, DEBUG is not recommended even in local setups.
discord_log_level = "INFO"

[bot]
# The token Metricity will use to authenticate with Discord.
token = { env = "BOT_TOKEN" }

# The guild ID that Metricity should be reporting about
guild_id = 476190141161930753

# This is the role ID of the role that should identify staff members, for Python Discord this is the helper ID
staff_role_id = 476190429960732672

# Channels that should be flagged as staff only by category ID
staff_categories = [
609529926366003201,
686646323985907808
]

# Don't report messages for the following categories
ignore_categories = [
609530625233387540
]

[database]
# Postgres!

# If a database URI is passed in the "uri" variable it will override any specifics passed

uri = { env = "DATABASE_URI", optional = true }

# Otherwise, the below configuration options should be specified

host = "127.0.0.1"
port = 5432
database = "metricity"
username = "postgres"
password = "postgres"

0 comments on commit 12e9cca

Please sign in to comment.