-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.py
37 lines (25 loc) · 1.33 KB
/
config_example.py
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
import typing as t
import attr
"""
Configuration file example for the Discord bot Chen.
The actual configuration is read from 'config.py', which must exist.
All secrets are stored and read from the .env file.
"""
@attr.frozen(weakref_slot=False)
class Config:
DEV_MODE: bool = False # Control debugging mode, commands will default to DEBUG_GUILDS if True
ERROR_LOGGING_CHANNEL: int = 123456789 # Error tracebacks will be sent here if specified
DB_BACKUP_CHANNEL: int = 123456789 # DB backups will be sent here if specified
DEBUG_GUILDS: t.Sequence[int] = (123, 456, 789) # Commands will only be registered here if DEV_MODE is on
OWNER: int = 196583204164075520
# Copyright (C) 2022-present HyperGH
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see: https://www.gnu.org/licenses