tuxbot-bot/tuxbot/cogs/Logs/config.py

46 lines
1.1 KiB
Python
Raw Normal View History

2021-03-31 16:08:41 +00:00
from typing import Dict
2020-10-21 22:00:48 +00:00
from structured_config import Structure, StrField
HAS_MODELS = False
2020-10-21 22:00:48 +00:00
class LogsConfig(Structure):
dm: str = StrField("")
mentions: str = StrField("")
guilds: str = StrField("")
errors: str = StrField("")
gateway: str = StrField("")
sentryKey: str = StrField("")
2020-10-21 22:00:48 +00:00
2021-03-31 16:08:41 +00:00
extra: Dict[str, Dict] = {
2020-10-21 22:00:48 +00:00
"dm": {
"type": str,
"description": "URL of the webhook used for send DMs "
"received and sent by the bot",
},
"mentions": {
"type": str,
"description": "URL of the webhook used for send Mentions "
"received by the bot",
},
"guilds": {
"type": str,
"description": "URL of the webhook used for send guilds where the "
"bot is added or removed",
},
"errors": {
"type": str,
"description": "URL of the webhook used for send errors in the bot",
},
"gateway": {
"type": str,
"description": "URL of the webhook used for send gateway information",
},
"sentryKey": {
"type": str,
"description": "Sentry KEY for error logging (https://sentry.io/)",
},
2020-10-21 22:00:48 +00:00
}