Configuration File
One of the main goals of the Sentinel Tickets discord bot is to provide a remarkable amount of configuration options via it’s config.yml
file.
The config already comes with a lot of comments explaining each option but this page aims to provide some more details and notes.
Ticket bot general settings
Notes
- An example usage of
rolesOnBlacklist
could be if you have aMuted
role on your server which the bot will then give to blacklisted users until they are no longer blacklisted. HTML
transcripts are recommended overTXT
because of how much better they look.deleteTicketTime
is the amount of time in seconds that the bot will wait before deleting the ticket channel after you click the delete button or use the/delete
command.- The
alertReply
time in the config is only the default time, you can input a custom time in seconds when using thealert
slash command.
Ticket Category settings
Notes
- This is an example of a configured category, the default config comes with 2 default categories which you can feel free to modify, remove or add more categories.
- You can create a new category by copying everything and pasting it right below the last category you have in your configuration, then incrementing the
id
by 1. If you are using the default config, that would mean adding a 3rd category with anid
of3
. - For a more detailed explanation about the permissions section of this configuration, refer to this page.
- To create additional questions, you can copy one of the current questions and paste it right below your last question. You can have up to 5 questions at most and you need to make sure each question has a configured
label
,placeholder
,style
,required
,minLength
andmaxLength
option. - Currently, the bot does not support working without questions so you should at least make sure to use 1 question in each category you create.
Multi Panel settings
Notes
- You can setup multiple panels in this section, you can also use the
categories
array to organize the categories in the panel as you wish. The default value is["1, 2"]
but["2, 1"]
works too. - The
id
of each panel must be an integer, it is suggested to just increment it by 1 for each new panel. - The usage of the
/panel
command is/panel id layout
, the id is required and is the id of the panel you want to send, while the layout is a choice between 2 optionsButtons
orMenu
. Example usage:/panel id: 1 layout: Menu
- You can configure a unique embed for each panel.
- If you updated from a previous version of the bot before multi panels were added, please re-send your panels after you finish upgrading your configuration.
Ticket DM user settings
Notes
- In this configuration section, feel free to enable or disable any of the 3 options
embed
,transcript
orratingSystem
’s enabled to customize what is sent in a user’s DMs after a ticket gets deleted. - Disabling all 3 options will disable the DM entirely.
- Setting
modal: false
will disable the questions, which means the user will only provide a rating from 1 to 5. - You can configure the emoji used in the feedback menu in the user’s DM alongside adding more questions to the feedback modal.
- The questions can be configured the same way as the questions of a ticket category configuration.
Slash commands settings
Notes
-
In this section you can enable/disable commands, configure their permissions and some command-specific settings explained in their respective comments.
-
Some commands have optional options that allow you to add a reason, such as ticket close, delete etc. Given that it’s optional, you may edit the embeds/log embeds to avoid displaying the reason if you don’t want to use it.
-
The tickets list slash and context menu commands share the same array for
support_role_ids
that are allowed to use it. The default behavior is to deny the usage of the optional user option because otherwise any member can see a list of current tickets of any other member. Configure this as you see fit, such as allowing your staff roles to execute the command on any user. -
For a more streamlined experience, it’s recommended that you configure the permissions based on a common permission between your support roles.
The default configuration assumes your support staff have the permission to kick members, so they will have access to the commands. Feel free to modify this to fit your use-case.List of Permissions Use this page to find a list of usable configuration options for the "permission" of each command.
General button settings
Notes
- For a detailed explanation on how to use custom emojis in this section or also in the ticket category button and menu emojis, take a look at this page.
- The
allowedRoles
array allows you to specify roles needed to use the specific button. Keep in mind that disabling thereOpenStaffOnly
,closeStaffOnly
&deleteStaffOnly
config options might be the best option if you intend to use theallowedRoles
array.
Working Hours Settings
Notes
- If you enable the working hours feature, make sure to always configure the min and max hours in the format
"HH:MM"
. - Configure the timezone based on your own, so that the bot’s working hours will function in an hour range familiar to you or your community.
- The bypass roles feature may be useful to people who have specific roles that get higher priority support.
Log channels
Notes
- It would be best to keep all the toggled Logs enabled so you can always search back in the logs channels to find information that might be useful when you need it.
- Make sure to always at least configure the default log channel ID, the bot will log an error without it because it’s the main fallback for all the logs.
Embeds Locale
Notes
- This section only provides the example configuration for one embed because all of them are the same. Note that only a few embeds might not have all the options due to them being dynamic or overriden by necessary code.
For example, the ticket created embed configuration does not support description and color because you already configure those options per ticket category. - Some embeds might have commented out options like footer text and iconURL, that’s in order to use the default values which can be more unique per user such as the user’s username and avatar as a footer.
- A few embeds might have unique options such as fields or options to disable buttons like on the close embed.
- The config comments will mention when you cannot use one of the embeds options for a specific embed, so you will be aware.
DM Embeds Locale
Notes
- Similar to the embeds locale section, however an extra option exists for some of the DM embeds called
enabled
. To enable the DM embeds that have this option, you must putenabled: true
.
Misc Locale
Notes
- You can configure error messages in this section and a few more embeds.
Logs.txt channel settings
Notes
- Due to potential issues with rate limits, the bot will only send errors and not other logs to a discord channel if this option is enabled.