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-21 15:27:29 -04:00
console_commands_enabled = False ,
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-04 22:59:43 -05:00
chat_command = ' tellraw @a [ " " , { " text " : " .$N " , " color " : " .$C " , " insertion " : " <@.$I> " , " hoverEvent " : { " action " : " show_text " , " contents " : " Shift click to mention this user inside Discord " }}, { " text " : " (DISCORD): " , " color " : " blue " , " clickEvent " : { " action " : " open_url " , " value " : " .$V " }, " hoverEvent " : { " action " : " show_text " , " contents " : " Click to join the Discord Server " }}, { " text " : " .$M " , " color " : " white " }] ' , # noqa: E501
2024-03-14 16:26:31 -04:00
topic = ' Server IP: .$H \n Server Players: .$P/.$M ' ,
topic_hostname = None ,
topic_port = 25565 ,
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-03-04 22:59:43 -05:00
invite = None ,
2024-03-02 19:27:36 -05:00
regex_blacklist = { } ,
2024-02-29 23:26:24 -05:00
)