config tickets - shinyfinder/chatot-smogon GitHub Wiki

Usage

Availability: All Guilds

/config tickets <threadchan> [logchan]

  • threadchan: Parent channel for button and private threads
  • logchan (Optional): Channel for logging new thread creation alerts

Example:

/config tickets threadchan:123456

Permissions

  • Chatot: View Channel, Create Private Threads, Send Messages in Threads in threadchan
  • Users: Ban Members

Description

Summary: Creates a button for users to open support tickets with server staff.

This command creates a permanent button that users can click to create a private thread with server mods. An embed + button is posted in the provided channel. When users click the button, they are prompted to provide a short description (250 max characters) about their concern/question/feedback. There is a 10 minute timeout for them to submit their response. Once the form is submitted, a private thread is created off of the provided channel (the channel with the button), accessible only to the user who clicked the button, the bot, and the mods. While the user is unable to add people to the thread, mods can add users/roles to the thread by pinging them with the standard @username format within it. Please be mindful of who you ping when dealing with sensitive topics, as they will be automatically added to the private thread! Providing a channel to the logchan field will send an alert to the channel with the username of the submitter and link to the thread when a new thread is opened.

After submitting the command, you will be prompted to enter any staff roles you wish to ping whenever a new ticket is opened. Select up to 3 roles from the dropdown menu (you can type to search), or click the buttons to skip this step. Once at least 1 item is selected within the dropdown, clicking outside of it will submit your choices.

Only 1 active button is allowed per server. If a button is already present within the specified threadchan (i.e. you one day run this command a second time to update the roles that get notified), Chatot will update your preferences and reuse the existing button. Otherwise, it'll render the old button innactive, try to delete the old button, and create a new one. Any innactive buttons are useless and the parent message can be safely deleted. If you wish to remove tickets from your server, simply delete the bot's message containing the button.

If you notice that the thread is made and the bot tags the role, but staff is not getting the notification, ensure that either the staff role is taggable by anyone or the bot is granted the permission to tag any role.

⚠️ **GitHub.com Fallback** ⚠️