Config - TheEpicBlock/Discord-Unban GitHub Wiki

Discord-Unban's config

See the default config here You can reload this using /discordSRV reload

Lang.yml

lang.yml is a separate config which contains most strings discordSRV sends. It can be edited to support different languages. Look here for the default lang.yml. Please note that when lang.yml is updated in a new release the file isn't automatically updated. You can delete it and let Discord-Unban auto generate it again or you can manually add the new field. This will also be reloaded when using /discordSRV reload.

Enabled channels

These are the channels where discord-unban listens for messages. Any messages in other channels will be ignored.

EnabledChannels:
    - '693207926692642826'
    - '707248041928949891'

You can also match all channels

EnabledChannels:
    - '*'

Role

This is the id of the role which can use these commands. Any player who doesn't have this role can't use any of the commands.

Role: "707310286251622492"

Unban and info command

These are the commands used to interact with the bot. Commands with spaces are supported.

UnbanCommand: "!unban"
InfoCommand: "!baninfo"

Show info after unban

When this is enabled the bot will post a users ban info after someone tries to unban him. Useful in combination with RequireConfirmation. As you can then see the info before deciding to unban someone. (When used with RequireConfirmation the baninfo will be hidden once the unban is confirmed. Keeping the chat clean)

ShowInfoAfterUnban: false

Require confirmation

This will require you to react to the message to confirm you want to unban someone. Useful in combination with ShowInfoAfterUnban
This is how it will look if both ShowInfoAfterUnban and RequireConfirmation are enabled:
example when ShowInfoAfterUnban and RequireConfirmation are enabled

RequireConfirmation: false

Date Format

This is the format used for dates. See

DateFormat: "HH:mm dd-MM-yyyy"

Show head in info

If this is enabled. The minecraft head will be displayed alongside the ban info.
example when showing the head with the ban info command
If you want to change how the head is shown, edit Experiment_EmbedAvatarUrl in discordSRV's config.yml. Look here for examples of values you can put here. For example https://minotar.net/cube/{uuid-nodashes}/{size} will make the head 3d. I personally really like how bust looks.

HeadInInfo: true

Debug

Spams the console with logs. Most of them aren't even useful.

Debug: false