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!
ChannelCleaner | BrayanBot Addon

BrayanBot Encrypted ChannelCleaner | BrayanBot Addon 1.2.3

No permission to download
Banner1.png

Want to clean your channels without trouble?​

Then this addon is perfect for you.
This addon adds two commands: purge (number) [channel] - to delete X message in specified channel - and nuke [channel] - to recreate specified channel.

Developer Info
This addon supports external development.

Events
channelPurge - Channel purge event.
Parameters: channel(Purge channel), count(Purged messages count), executor(User, who executed purge action)

channelNuke - Channel nuke event.
Parameters: channel(Nuked channel), executor(User, who executed nuke action)

Banner2.png
[/SIZE]
Purge command:
obraz_2022-04-16_154421164.png


Nuke command:
obraz_2022-04-16_154509763.png


NOTE:

All messages are fully configurable and you can change it's look and content using configuration files.

Banner3.png


YAML:
# Define if addon is enabled
Enabled: true
# Settings for Purge command
Purge:
  # Should command require `MANAGE_MESSAGES` permission?
  CheckPermission: true
  # Response delection settings
  DeleteResponse:
    # Should response be deleted?
    Enabled: true
    # After how many seconds should response be deleted?
    Delay: 5
  # Command logging settings
  Logs:
    # Should logs be enabled?
    Enabled: true
    # Where should logs be sent?
    Channel: 🖥┇logs
Nuke:
  # Should command require `MANAGE_CHANNELS` permission?
  CheckPermission: true
  # Response delection settings
  DeleteResponse:
    # Should response be deleted?
    Enabled: true
    # After how many seconds should response be deleted?
    Delay: 5
  # Command logging settings
  Logs:
    # Should logs be enabled?
    Enabled: true
    # Where should logs be sent?
    Channel: 🖥┇logs
# Auto message deletion system
AutoDelete:
  # Should auto-purge be enabled?
  Enabled: false
  # Auto-Purge channels
  Channels:
    - # Channel name
      Name: auto-purge
      # After how many seconds should message be deleted?
      Delay: 5
      # Should ignore bot messages?
      IgnoreBots: true
YAML:
# Purge command
Purge:
  # Command Name
  Name: purge
  # Command Description
  Description: Clear messages from channel
  # Command Type
  Type: Admin
  # Command usage
  # THIS WONT CHANGE ANYTHING. Only for translation purposes!
  Usage: purge [number] (channel)
  # Command Aliases
  Aliases:
    - clear
  # Roles with which users can use this command
  Permission:
    - 🧰 | Admin
  SlashCommand:
    # Should SlashCommand be enabled?
    Enabled: true
    # SlashCommand data
    Data:
      # SlashCommand name
      Name: purge
      # SlashCommand description
      Description: Clear messages from channel
      # SlashCommand options
      Options:
        - Type: integer
          Name: number
          Description: How many messages should be deleted?
          Required: true
        - Type: channel
          Name: channel
          ChannelTypes:
            - text
            - news
            - public_thread
            - private_thread
          Description: Where should messages be deleted?
          Required: false
# Purge command
Nuke:
  # Command Name
  Name: nuke
  # Command Description
  Description: Nuke sellected channel
  # Command Type
  Type: Admin
  # Command usage
  # THIS WONT CHANGE ANYTHING. Only for translation purposes!
  Usage: nuke (channel)
  # Command Aliases
  Aliases: []
  # Roles with which users can use this command
  Permission:
    - 🧰 | Admin
  SlashCommand:
    # Should SlashCommand be enabled?
    Enabled: true
    # SlashCommand data
    Data:
      # SlashCommand name
      Name: nuke
      # SlashCommand description
      Description: Nuke sellected channel
      # SlashCommand options
      Options:
        - Type: channel
          Name: channel
          ChannelTypes:
            - text
            - news
            - public_thread
            - private_thread
          Description: Which channel should be nuked?
          Required: false
YAML:
# Messages used by addon.
# Its recomended to use these placeholders:
# - Purge - {deleted} - Deleted messages count
# - Purge - {channel} - Channel, from which messages were deleted
# - Nuke - {channel} - Nuke(d) channel
Messages:
  # Purge success message
  MessagesDeleted:
    Embeds:
      - Title: "{bot-username} | Purge"
        Color: "#FFFF00"
        Author: "{user-tag}"
        AuthorIcon: "{user-pfp}"
        Description: "**{deleted}** messages were deleted from {channel}."
        Footer: "{brand-name}"
        FooterIcon: "{brand-logo}"
        Timestamp: true
  # Nuke confirmation message
  NukeConfirmation:
    Embeds:
      - Title: "{bot-username} | Nuke"
        Color: "#FFFF00"
        Author: "{user-tag}"
        AuthorIcon: "{user-pfp}"
        Description: Are you sure you want to nuke {channel}?
        Footer: "{brand-name}"
        FooterIcon: "{brand-logo}"
        Timestamp: true
    Components:
      "1":
        - Type: Button
          Style: Success
          Emoji: ✅
          Label: Confirm
          CustomID: nuke_confirm
        - Type: Button
          Style: Danger
          Emoji: ❌
          Label: Cancel
          CustomID: nuke_cancel
  # Nuke cancel message
  NukeCanceled:
    Embeds:
      - Title: "{bot-username} | Nuke"
        Color: "#FFFF00"
        Autho: "{user-tag}"
        AuthorIcon: "{user-pfp}"
        Description: Action canceled.
        Footer: "{brand-name}"
        FooterIcon: "{brand-logo}"
        Timestamp: true
    Components:
      "1":
        - Type: Button
          Style: Success
          Emoji: ✅
          Label: Confirm
          CustomID: nuke_confirm
          Disabled: true
        - Type: Button
          Style: Danger
          Emoji: ❌
          Label: Cancel
          CustomID: nuke_cancel
          Disabled: true
  # Nuke success message
  NukeSuccess:
    Embeds:
      - Title: "{bot-username} | Nuke"
        Color: "#FFFF00"
        Author: "{user-tag}"
        AuthorIcon: "{user-pfp}"
        Description: "`{channel}` has been successfully nuked."
        Footer: "{brand-name}"
        FooterIcon: "{brand-logo}"
        Timestamp: true
  # Errors Messages used by addon.
  Errors:
    # Error Message, which will be send if user wrongly use the command.
    # Its recomended to use {usage} placeholder, which will show command usage.
    WrongCommandUsage:
      Content: ⚠️ An error occured ⚠️
      Embeds:
        - Title: Wrong command usage!
          Color: "#FF0000"
          Author: "{brand-name}"
          AuthorIcon: "{brand-logo}"
          Description: "Usage: `{usage}`"
          Thumbnail: "{brand-logo}"
          Timestamp: true
    # Error Message, which will be send if user mentions invalid channel.
    InvalidChannel:
      Content: ⚠️ An error occured ⚠️
      Embeds:
        - Title: Invalid channel!
          Color: "#FF0000"
          Author: "{brand-name}"
          AuthorIcon: "{brand-logo}"
          Description: >-
            Provided channel is invalid

            > Check if you typed everything correctly and if you have propper permissions.
          Thumbnail: "{brand-logo}"
          Timestamp: true
    # Error Message, which will be send if purge count bigger than 100.
    CountTooHigh:
      Content: ⚠️ An error occured ⚠️
      Embeds:
        - Title: Count too high!
          Color: "#FF0000"
          Author: "{brand-name}"
          AuthorIcon: "{brand-logo}"
          Description: Message count can't be higher than 100.
          Thumbnail: "{brand-logo}"
          Timestamp: true
    # Error Message, which will be send if any message is older than 2 weeks.
    MessageTooOld:
      Content: ⚠️ An error occured ⚠️
      Embeds:
        - Title: Message too old!
          Color: "#FF0000"
          Author: "{brand-name}"
          AuthorIcon: "{brand-logo}"
          Description: Messages can't be older than 2 weeks.
          Thumbnail: "{brand-logo}"
          Timestamp: true
  # Log messages
  Logs:
    # Log message, which will be send when purge command is used.
    Purge:
      Embeds:
        - Title: Log System | Purge
          Color: "#FFFF00"
          Author: "{user-tag}"
          AuthorIcon: "{user-pfp}"
          Description: "`{deleted}` messages were deleted from {channel} by {user-mention}."
          Footer: "{brand-name}"
          FooterIcon: "{brand-logo}"
          Timestamp: true
    # Log message, which will be send when nuke command is used.
    Nuke:
      Embeds:
        - Title: Log System | Nuke
          Color: "#FFFF00"
          Author: "{user-tag}"
          AuthorIcon: "{user-pfp}"
          Description: "`{channel}` has been nuked by {user-mention}."
          Footer: "{brand-name}"
          FooterIcon: "{brand-logo}"
          Timestamp: true

Banner4.png

You can get support for this addon on:

Banner5.png
Author
SimonB50
Downloads
63
Views
1,205
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from SimonB50

Latest updates

  1. 1.2.3

    Changelog:Added support for BrayanBot 1.4.0Changed channel variables handling to build-in...
  2. 1.2.2

    Changelog:Added option to ignore bots in auto-delete channel Added check if message is too old...
  3. 1.2.1

    Changelog:Added support for BrayanBot 1.3.0 Fixed bug with AutoDelete.Enabled setting being...
Back
Top