1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
tux/docs/permissions.md
kzndotsh 8fcebd00be docs(CODE_OF_CONDUCT.md, CONTRIBUTING.md): wrap email and URLs in angle brackets for better markdown rendering
refactor(CONTRIBUTING.md): improve document structure and readability by adding indentation and spacing
style(CONTRIBUTING.md): add newline at end of file to adhere to POSIX standards

feat: add .markdownlint.yaml for consistent markdown formatting

This commit adds a .markdownlint.yaml configuration file to enforce consistent markdown formatting across the project. This will help maintain readability and uniformity in all markdown files.

docs: improve readability and clarity of project documentation

- README.md: Simplify title and subtitle formatting, add warning about bot readiness, clarify installation steps, and improve overall readability.
- cli.md: Improve readability by adding line breaks.
- commands.md: Remove unnecessary line break.
- development.md: Simplify introduction, refer to README for installation instructions, and improve readability.
- permissions.md: Improve readability by adding line breaks and clarifying permission levels.

style(services.md): improve readability by adding a line break between two sentences
docs(services.md): add newline at end of file to adhere to POSIX standards
2024-08-17 08:27:13 +00:00

1.5 KiB
Raw Blame History

Permissions Management

Tux employs a level-based permissions system to control command execution.

Each command is associated with a specific permission level, ensuring that only users with the necessary clearance can execute it.

Initial Setup

When setting up Tux for a new server, the server owner can assign one or multiple roles to each permission level. Users then inherit the highest permission level from their assigned roles.

For instance, if a user has one role with a permission level of 2 and another with a level of 3, their effective permission level will be 3.

Advantages

The level-based system allows Tux to manage command execution efficiently across different servers.

It offers a more flexible solution than just relying on Discord's built-in permissions, avoiding the need to hardcode permissions into the bot.

This flexibility makes it easier to modify permissions without changing the bots underlying code, accommodating servers with custom role names seamlessly.

Available Permission Levels

Below is the hierarchy of permission levels available in Tux:

  • 0: Member
  • 1: Support
  • 2: Junior Moderator
  • 3: Moderator
  • 4: Senior Moderator
  • 5: Administrator
  • 6: Head Administrator
  • 7: Server Owner
  • 8: Sys Admin (User ID list in config.json)
  • 9: Bot Owner (User ID in config.json)

By leveraging these permission levels, Tux provides a robust and adaptable way to manage who can execute specific commands, making it suitable for various server environments.