Welcome to CoreMart!

By registering with us, you'll be able to discuss, share, download resources and private message with other members of our community.

Sign-Up Now!
Away From Keyboard (AFK)

BrayanBot Source Away From Keyboard (AFK) 1.2.0

395


Allow members to mark themselves with AFK

396


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: true

commands.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

397

unknown.png

unknown.png


398

399
[/CENTER]
Author
Zorino
Type
Digital product
License duration
Unlimited
Price
4.99 USD
Views
518
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Zorino

Back
Top