aboutsummaryrefslogtreecommitdiffstats
path: root/config-default.toml
blob: 9032294b47bafc8855bb3195cf783f163cf7e3b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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 = 267624335836053506

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

# Channels that should be flagged as staff only by category ID
staff_categories = [
    468520609152892958,
    732695657587933304,
    364918151625965579,
    551815583788695562,
    721459859500957726,
    430484673248886784,
    749736277464842262,
    749735995460550726,
    787641585624940544,
    412287621704843264,
    881573419878076456,
    820711852652494868,
]

# Channels that should be flagged as staff only by channel ID
staff_channels = [412375055910043655]

# Don't report messages for the following categories
ignore_categories = [714494672835444826, 890331800025563216, 895417395261341766]

[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"

# Log all queries (SQLAlchemy echo)
log_queries = false