Allow members to mark themselves with AFK
config.yml
YAML:
# Default reason if user didnt specify one
DefaultReason: None
# Roles to Give when user goes AFK
# Roles will be taken away when user comes back
Roles:
- Away from keyboard
# Nickname to set when user goes AFK
# Set to false to disable nickname set
NicknameSet: AFK | {user-displayname}
# AFK Logs
Logs:
AFKOn:
Enabled: true
Channel: "941761412718526494"
AFKOff:
Enabled: true
Channel: "941761412718526494"lang.yml
YAML:
AlreadyAFK:
Embeds:
- Title: Away from Keyboard
Description: "> You are already marked as Away from KeyBoard"
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
AFKOn:
Embeds:
- Title: Away from Keyboard
Description: "> {user-mention} you are now marked as Away from KeyBoard."
Fields:
- Name: • Reason
Value: |-
```
{reason}```
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
WelcomeBack:
Embeds:
- Title: Away From keyboard
Description: |-
Welcome back {user-mention}! You were marked away from keyboard {time}.
> You've been unmarked as Away from Keyboard
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
UserIsAFK:
Embeds:
- Title: Away From keyboard
Description: "> {afkperson-mention} is currently away from keyboard, they went
afk {time}"
Fields:
- Name: • Reason
Value: |-
```
{reason}```
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
Logs:
AFKOn:
Embeds:
- Title: Away From keyboard • Logs
Description: "> {user-mention} is now marked as Away from Keyboard"
Fields:
- Name: • Reason
Value: |-
```
{reason}```
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
AFKOff:
Embeds:
- Title: Away From keyboard
Description: "> {user-mention} is no longer marked as Away from Keyboard"
Fields:
- Name: • Time
Value: "> {time}"
- Name: • Reason
Value: |-
```
{reason}```
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: true
ErrorOccured:
Embeds:
- Title: Away from Keyboard
Description: "> An error occured, Please contact an adminstrator."
FooterIcon: "{user-pfp}"
Footer: "{user-tag}"
Timestamp: truecommands.yml
YAML:
Name: afk
Description: Mark yourself as away from keyboard
Usage: afk [reason]
Aliases:
- away
Permissions:
- "@everyone"
SlashCommand:
Enabled: true
Data:
Name: afk
Description: Mark yourself as away from keyboard
Options:
- Type: String
Name: reason
Description: Reason for going AFK
Required: false
