> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superalts.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Attendance System Interactions

> All available commands, panels, and actions in the Attendance System bot — including section setup, login tracking, AFK management, and user reports.

## 🚀 Slash Commands

### `/newsection`

Create a new attendance section.

**Modal Fields:**

* **Section Name**
* **Manager Roles** Comma-separated Role IDs (`roleid1,roleid2`)
* **Section Roles** Comma-separated Role IDs (`roleid1,roleid2`)
* **Warning Roles** (for AFK warnings — ordered by level: e.g. `warn1`, `warn2`, `warn3`)

***

### `/setupattendance`

Sets up the interactive attendance panel for a specific section.

**Step-by-step flow:**

1. Select which **section** to set up
2. Choose a **logs channel** (optional – can skip)
3. Choose a **leaderboard channel** (optional – can skip)
4. Choose an **AFK panel** channel (optional – can skip)

***

### `/checkattendance`

View a specific user’s attendance record.

**Options:**

* `section` — Target section
* `user` — Target user

**The returned embed includes:**

* \[#️⃣] Login Times
* \[⏳] Total Login Time
* \[⌚] Last Login
* \[🔴] Last Logout

If the user is currently AFK:

* \[🟡] AFK Status
* \[⏲️] Time Remaining
* \[⌛] Total AFK Time

***

### `/vcattendance`

Checks which users from the section were in the same VC as the manager.

**Options:**

* `section` — Section to check

A message will be sent to the log channel listing:

* All users with that section role
* Whether each user was in the VC with the manager at the time of the command

***

### `/addtime`

Manually adjust a user's login time.

**Options:**

* `section` — Target section
* `user` — Target user
* `type` — Add or Remove
* `time` — Time in minutes (any input will be treated as minutes)

***

### `/removesection`

Opens a menu of existing sections for selection and removal.

***

## 🧷 Attendance Panel Buttons

### ✅ Login

Starts tracking the user’s session time.

### ❌ Logout

Ends the current session and updates the total login time.

### ❔ Info

Shows the user's attendance info in the current section, depending on their role.

**Display includes:**

* \[#️⃣] Login Times
* \[⏳] Total Login Time
* \[⌚] Last Login
* \[🔴] Last Logout

***

## 💤 AFK Panel Buttons

### ⏳ Start AFK

Prompts the user to enter an AFK time.

* The max time is configured in your `config.js`
* If the time expires and the user doesn't manually stop AFK:
  * A **1-minute grace warning** is sent
  * If still not stopped, the user is given the next **warning role** from the configured list

### 🔔 Stop AFK

Manually ends AFK mode and cancels any pending warnings.
