2024-02-29 23:26:24 -05:00
|
|
|
from redbot.core import Config
|
|
|
|
|
2024-02-29 23:54:35 -05:00
|
|
|
config: Config = Config.get_conf(None, identifier=457581387213637448123567, cog_name="Pterodactyl", force_registration=True)
|
2024-02-29 23:26:24 -05:00
|
|
|
|
|
|
|
def register_config(config_obj: Config) -> None:
|
|
|
|
config_obj.register_global(
|
|
|
|
base_url=None,
|
|
|
|
server_id=None,
|
|
|
|
console_channel=None,
|
2024-03-01 00:02:42 -05:00
|
|
|
current_status='',
|
2024-03-02 15:30:47 -05:00
|
|
|
chat_regex=r"^\[\d{2}:\d{2}:\d{2}\sINFO\]: (?!\[(?:Server|Rcon)\])(?:<|\[)(\w+)(?:>|\]) (.*)",
|
2024-03-02 12:40:25 -05:00
|
|
|
server_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]:(?: \[Not Secure\])? \[(?:Server|Rcon)\] (.*)",
|
2024-03-01 00:23:00 -05:00
|
|
|
join_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) joined the game$",
|
2024-03-01 00:23:59 -05:00
|
|
|
leave_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) left the game$",
|
2024-03-01 00:46:51 -05:00
|
|
|
achievement_regex=r"^\[\d{2}:\d{2}:\d{2} INFO\]: (.*) has (made the advancement|completed the challenge) \[(.*)\]$",
|
2024-03-02 15:12:59 -05:00
|
|
|
chat_command='tellraw @a ["",{"text":".$N ","color":".$C"},{"text":" (DISCORD): ","color":"blue"},{"text":".$M","color":"white"}]',
|
2024-02-29 23:26:24 -05:00
|
|
|
api_endpoint="minecraft",
|
2024-03-01 00:05:06 -05:00
|
|
|
chat_channel=None,
|
|
|
|
startup_msg='Server started!',
|
|
|
|
shutdown_msg='Server stopped!',
|
2024-03-01 00:23:00 -05:00
|
|
|
join_msg='Welcome to the server! 👋',
|
|
|
|
leave_msg='Goodbye! 👋',
|
2024-03-01 22:38:49 -05:00
|
|
|
mask_ip=True,
|
2024-02-29 23:26:24 -05:00
|
|
|
)
|