feat(pterodactyl): added masking of IP addresses in the console output
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 21s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 24s

This commit is contained in:
SeaswimmerTheFsh 2024-03-01 22:38:49 -05:00
parent fb177ff8ad
commit 306148ea69
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
3 changed files with 19 additions and 0 deletions

View file

@ -303,3 +303,12 @@ class Pterodactyl(commands.Cog):
return await ctx.send(f"Leave message is currently set to: {message}")
await config.leave_msg.set(message)
await ctx.send(f"Leave message set to: {message}")
@pterodactyl_config.command(name = "ip")
async def pterodactyl_config_mask_ip(self, ctx: commands.Context, mask: bool = None) -> None:
"""Mask the IP addresses of users in console messages."""
if mask is None:
mask = await config.mask_ip()
return await ctx.send(f"IP masking is currently set to {mask}")
await config.mask_ip.set(mask)
await ctx.send(f"IP masking set to {mask}")