Skip to main content

πŸ”§ Config

This command is used to configure multiple aspects and functionalities of the bot.

/config

Autodelete​

This feature will delete all messages according to the configuration after X minutes.

/config autodelete

Enable​

Adds an auto delete channel to the server.

/config autodelete enable

Parameters

*Required

channel*

type: Text Channel

description: The channel where the messages should be deleted

duration*

type: Number

description: The time until the messages are deleted (in minutes)

bots

type: Boolean

description: Whether to delete bot messages or not

default: True

pinned

type: Boolean

description: Whether to delete pinned messages or not

default: False

Example Usage

/config autodelete enable channel:#bot-commands duration:5

Disable​

Removes a auto delete channel from the server.

/config autodelete disable

Parameters

*Required

channel*

type: Text Channel

description: The channel where the messages should be deleted

Example Usage

/config autodelete disable channel:#bot-commands

Bans​

This feature will allow you to export and import bans from one server to another.

/config bans

Export​

Export the ban list from the server.

/config bans export

Parameters

*Required

format*

type: Option

description: Type of file to export the bans to

options: [ .csv File, .json File ]

Example Usage

/config bans export format:.csv File

Import​

Import a ban list to the server.

/config bans import

Parameters

caution

Both parameters in this command are optional, but you must provide at least one.

file

type: File

description: The file to import the bans from
info

You need upload a .csv or .json file previous exported via the /config bans export command.

guild

type: GuildId

description: The GuildId to import bans from

Example Usage

/config bans import file:exportFile.json

Logs​

This feature will allow you to setup channels to keep track of all the bans occurring on the server.

/config logs

Enable​

Adds a log channel to the server.

/config logs enable

Parameters

*Required

channel*

type: Text Channel

description: The channel where the logs should be sent

Example Usage

/config logs enable channel:#logging

Disable​

Removes a log channel from the server.

/config autodelete disable

Parameters

*Required

channel*

type: Text Channel

description: The channel where the logs are configured

Example Usage

/config logs disable channel:#logging

Panel​

This feature is used to prevent raids, bot accounts (chat bots posing as real users) and malicious users with a unique verification system that will ask users to complete a challenge before having access to the rest of the server.

The system allows you to enable an badge check feature which consists in two parts:

Users that have the following badges will be automatically verified when joiningUsers that have the following badges will be automatically verified upon request (no challenge needed)
DISCORD_EMPLOYEE
BUGHUNTER_LEVEL_1
BUGHUNTER_LEVEL_2
PARTNERED_SERVER_OWNER
DISCORD_CERTIFIED_MODERATOR
HYPESQUAD_EVENTS
EARLY_SUPPORTER
EARLY_VERIFIED_BOT_DEVELOPER

It is also possible (and strongly suggested) to kick (ban is also possible) the user if they take longer than X minutes to get verified.

/config panel

Create​

Used to complete a full setup for the anti-bot system.

/config panel create

Parameters

*Required

role

type: Role

description: Role to apply to the member when verified

default: Will create a new role called "Verified Human"

badge_check

type: Boolean

description: Whether to enable or not the badge check

default: False

auto_prune_time

type: Number

description: Time limit for taking action for unverified users, in minutes

default: 30

auto_prune_action

type: Option

description: Action to take on unverified users

options: [ Disable, Kick, Ban ]

default: Disabled

Example Usage

/config panel create role:@Verified Human badge_check:True auto_prune_time:5 auto_prune_action:Kick

Send​

In case you need to send or resend the anti-bot verification message.

/config panel send

Parameters

*Required

send_channel*

type: Text Channel

description: Channel to send anti-bot message to

language

type: Option

description: Language to send the message in

options: [ πŸ‡¬πŸ‡§ | English, πŸ‡«πŸ‡· | French, πŸ‡΅πŸ‡Ή | Portuguese, πŸ‡·πŸ‡Ί | Russian, πŸ‡ΊπŸ‡¦ | Ukrainian ]

default: πŸ‡¬πŸ‡§ | English
info

If you speak a language that is not currently supported by Sledgehammer, you can create an pull request with your translation on the Github repo.

Example Usage

/config panel send send_channel:#verify

or

/config panel send send_channel:#verify language:πŸ‡¬πŸ‡§ | English

Update​

Used to update specific settings for the anti-bot system.

/config panel update

Parameters

*Required

role

type: Role

description: Role to apply to the member when verified

default: Use previously saved role

logs_channel

type: Text Channel

description: Channel to send log messages for the anti-bot system

default: Use previously saved channel

badge_check

type: Boolean

description: Whether to enable or not the badge check

default: Use previously saved value

auto_prune_time

type: Number

description: Time limit for taking action for unverified users, in minutes

default: Use previously saved value

auto_prune_action

type: Option

description: Action to take on unverified users

options: [ Disable, Kick, Ban ]

default: Use previously saved value
info

The auto prune action will only affect users without any role.

Example Usage

/config panel update auto_prune_time:1
note

The parameters that weren't updated will be the previous ones.

Disable​

Used to disable the anti-bot system.

/config panel disable

Report​

This feature will return you a report about the bot's configurations on the server.

/config report