Jump to content
DAYZ-CODE.RU - Создай свой игровой сервер

Discord Тикет-бот 1.0.0

   (0 reviews)

 Share

9 Screenshots

About This File

I present to your attention a free Discord Ticket bot.

The bot will simplify your work with helping participants/players.

  • Administrators have a separate channel with logs of closed tickets.
  • When closing the ticket, the comment/reason for closing the ticket is indicated.
  • The bot automatically writes to the author of the ticket in the BOS, when it is closed by the administrator.
  • A wide range of categories for creating a ticket.
  • The ability to specify a Nickname and Steam ID when creating a ticket.
  • The ability to create new ticket categories.

          ________________________________________________________________________________________

  • When creating a ticket, all administrators see them in a separate category.
  • Manually configuring the bot by roles and granting permissions.
    _______________________________________________________________________________________
{
    "clientId": "1111111111111111111", // The id of the discord bot
    "guildId": "1111111111111111111", // The id of the discord server
    "mainColor": "#f6c42f", // The hex color of the embeds by default
    "lang": "main", // If you want to set english please set "main"
 
    "openTicketChannelId": "1111111111111111111", // The id of the channel where the message to create a ticket will be sent
 
    "ticketTypes": [
        // You have a limit of 25 types (the limit of Discord)
        {
            "codeName": "category-one", // The name need to be in lowercase
            "name": "Category One", // The name that will be displayed in the ticket
            "description": "Description of Category One", // The description of the Ticket in Create Ticket Menu
            "emoji": "💡", // The emoji of the type (can be blank)
            "color": "", // Can be a hex color or blank to use the main color
            "categoryId": "1111111111111111111", // The category id where the tickets will be created
            "ticketNameOption": "💡ticket-TICKETCOUNT", // Here is all parameter: USERNAME, USERID, TICKETCOUNT (set to blank to use the default name)
            "customDescription": "", // The custom description of the ticket type, here is all parameter: USERNAME, USERID, TICKETCOUNT, REASON1, 2, ect (set to blank to use the default description)
            "cantAccess": ["1111111111111111111"], // The roles who can't access to this ticket type
            "askQuestions": false, // If the bot should ask the reason of the ticket
            "questions": [] // Leave blank if you don't want to ask questions
        },
        {
            "codeName": "category-two", // The name need to be in lowercase
            "name": "Category Two", // The name that will be displayed in the ticket
            "description": "Description of Category Two", // The description of the Ticket in Create Ticket Menu
            "emoji": "🛑", // The emoji of the type (can be blank)
            "color": "#f8312f", // Can be a hex color or blank to use the main color
            "categoryId": "1111111111111111111", // The category id where the tickets will be created
            "ticketNameOption": "", // Here is all parameter: USERNAME, USERID, TICKETCOUNT (set to blank to use the default name)
            "customDescription": "Please explain your report in detail. If you have any images, please attach them to your message.", // The custom description of the ticket type, here is all parameter: USERNAME, USERID, TICKETCOUNT, REASON1, 2, ect (set to blank to use the default description)
            "cantAccess": ["2222222222222222222"], // The roles who can't access to this ticket type
            "askQuestions": false, // If the bot should ask the reason of the ticket
            "questions": [] // Leave blank if you don't want to ask questions
        },
        {
            "codeName": "other", // The name need to be in lowercase
            "name": "Other", // The name that will be displayed in the ticket
            "description": "Description of Category Other", // The description of the Ticket in Create Ticket Menu
            "emoji": "", // The emoji of the type (can be blank)
            "color": "", // Can be a hex color or blank to use the main color
            "categoryId": "1111111111111111111", // The category id where the tickets will be created
            "ticketNameOption": "", // Here is all parameter: USERNAME, USERID, TICKETCOUNT (set to blank to use the default name)
            "customDescription": "Thank you for your ticket, a staff will reply you as soon as possible\n\n__**What is the reason of the ticket?**__: REASON1", // The custom description of the ticket type, here is all parameter: USERNAME, USERID, TICKETCOUNT, REASON1, 2, ect (set to blank to use the default description)
            "cantAccess": [], // The roles who can't access to this ticket type
            "askQuestions": true, // If the bot should ask the reason of the ticket
            "questions": [
                // Maximum of 5 questions can be set due to discord's limit
                {
                    "label": "What is the reason of the ticket?",
                    "placeholder": "Please enter the reason",
                    "style": "PARAGRAPH", // SHORT or PARAGRAPH
                    "maxLength": 1000
                }
            ]
        }
    ],
    "ticketNameOption": "Ticket-TICKETCOUNT", // Here is all parameter: USERNAME, USERID, TICKETCOUNT
 
    // Ticket Claim Options
    "claimOption": {
        "claimButton": true, // Whether to enable ticket claim button or not
        // The X can be replaced with S (The staff that claimed the ticket) or U (The user that created the ticket)
        "nameWhenClaimed": "✔️ Ticket-TICKETCOUNT", // Here is all parameter: X_USERNAME, X_USERID, TICKETCOUNT
        "categoryWhenClaimed": "" // The category the ticket is moved to when claimed
    },
 
    "rolesWhoHaveAccessToTheTickets": ["1111111111111111111", "2222222222222222222"], // Roles who can access to the tickets (Like the staff)
 
    "rolesWhoCanNotCreateTickets": [], // Roles who can not create a tickets (Like a blacklist)
 
    "pingRoleWhenOpened": true,
    "roleToPingWhenOpenedId": ["1111111111111111111"], // The role to ping when a ticket is opened
 
    "logs": true,
    "logsChannelId": "1111111111111111111", // The id of the channel where the logs will be sent
   
    "closeOption": {
        "closeButton": true, // If false the ticket can be closed only by doing /closes
        "dmUser": true, // Whether to DM the user when the ticket is closed
        "createTranscript": true, // If set to true, when the ticket is closed a transcript will be generated and sent in the logs channel
        "askReason": true, // If false the ticket will be closed without asking the reason
        "whoCanCloseTicket": "STAFFONLY", // STAFFONLY (roles configured at "rolesWhoHaveAccessToTheTickets") or EVERYONE
        "closeTicketCategoryId": "" // The id of the category where a closed ticket will be moved to. Leave blank to disable this feature
    },
    "uuidType": "uuid", // uuid or emoji
 
    "status": {
        "enabled": true, // If you want to enable the status of the bot
        "text": "github.com/Sayrix", // The text of the status
        "type": "PLAYING", // PLAYING, WATCHING, LISTENING, STREAMING, COMPETING
        "url": "https://twitch.tv/grimkujow", // The url of the status if the type is STREAMING (can be blank)
        "status": "online" // online, idle, dnd, invisible set to online if the type is STREAMING
    },
 
    "maxTicketOpened": 0, // The number of tickets the user can open while another one is already open. Set to 0 to unlimited
    /*
    Whether or not to minimizing the tracking data that are being sent
    Enabling this will cause the telemetry to only send the software version and node version
    */
    "minimalTracking": false,
    // Hide internal websocket logs
    "showWSLog": false
}

Next, go to the .env.example file and the config.example file.json delete the postscript .example
Documentation is available and installation instructions

Представляю вашему вниманию бесплатного Discord Тикет-бот.

Бот упростит вашу работу с оказание помощи участникам / игрокам.

  • У администраторов отдельный канал с логами закрытых тикетов.
  • При закрывании тикета указывается комментарий/причина закрытия тикета.
  • Бот автоматически пишет в лс автору тикета, при закрытии его администратором.
  • Широкий выбор категорий для создания тикета.
  • Возможность указать Никней и SteamID при создании тикета.
  • Возможность создать новые категории тикита.
    ________________________________________________________________________________________
  •  При создании тикета, все администраторы видят их в отдельной категории.
  • Ручная настройка бота по ролям и выдачей прав.
    _______________________________________________________________________________________

         

Чтобы настроить Ticket Bot, вам необходимо отредактировать config.jsonc файл в /config папке.

// config/config.jsonc
{
    "clientId": "1111111111111111111", // Идентификатор бота discord
    "guildId": "1111111111111111111", // Идентификатор сервера discord
    "mainColor": "f6c42f", // Цветовые пространства вставок
    "lang": "main", // Если вы хотите установить Русский, пожалуйста, установите "ru"

    /*
Выберите драйвер базы данных, postgres будет иметь приоритет над mysql (если включены оба параметра, чего, пожалуйста, не делайте).
Если ни один из них не включен, будет использоваться SQLite.
*PostgreSQL будет использовать схему по умолчанию*
    */
    "postgre": {
        "enabled": false,
        "host": "postgresql.example.com", // Хост базы данных PostgreSQL
        "user": "postgres", // Пользователь базы данных PostgreSQL
        "password": "password", // Пароль к базе данных PostgreSQL
        "database": "postgres", // Имя базы данных PostgreSQL
        "table": "json" // Название таблицы, в которой будут сохранены билеты
    },
    "mysql": {
        "enabled": false,
        "host": "mysql.example.com", // Хост базы данных MySQL
        "user": "mysql", // Пользователь базы данных MySQL
        "password": "password", // Пароль к базе данных MySQL
        "database": "ticketbot", // Имя базы данных MySQL
        "table": "json" // Название таблицы, в которой будут сохранены билеты
    },

    "closeTicketCategoryId": "", // Идентификатор категории, в которую будет перемещен закрытый билет. Оставьте поле пустым, чтобы отключить эту функцию

    "openTicketChannelId": "1111111111111111111", // Идентификатор канала, по которому будет отправлено сообщение для создания заявки

    "ticketTypes": [
        // У вас есть ограничение в 25 типов (предел раздора)
        {
            "codeName": "category-one", // Название должно быть в нижнем регистре
            "name": "Category One", // Имя, которое будет отображаться в билете
            "description": "Description of Category One", // Описание билета в меню Создать билет
            "emoji": "💡", // Эмодзи соответствующего типа (может быть пустым)
            "color": "", // Может быть Цветовые пространства вставок или пустым для использования основного цвета
            "categoryId": "1111111111111111111", // Идентификатор категории, в которой будут созданы билеты
            "ticketNameOption": "💡ticket-TICKETCOUNT", // Вот все параметры: USERNAME, USERID, TICKETCOUNT (установите значение пустым, чтобы использовать имя по умолчанию)
            "customDescription": "", // Пользовательское описание типа билета, здесь приведены все параметры: USERNAME, USERID, TICKETCOUNT, REASON1, 2,((установите значение пустым, чтобы использовать имя по умолчанию))
            "cantAccess": ["1111111111111111111"], // Роли, которые не могут получить доступ к этому типу тикета
            "askQuestions": false, // Если бот должен спросить причину получения билета
            "questions": [] // Оставьте поле пустым, если вы не хотите задавать вопросы
        }
    ],
    "ticketNameOption": "Ticket-TICKETCOUNT", // Вот все параметры: USERNAME, USERID, TICKETCOUNT
    "ticketNamePrefixWhenClaimed": "✔️", //С префиксом ✔️ в качестве название билета будет выглядеть следующим образом: ✔️ билет-1

    "rolesWhoHaveAccessToTheTickets": ["1111111111111111111", "2222222222222222222"], // Роли, которые могут получить доступ к билетам (например, персонал)

    "rolesWhoCanNotCreateTickets": [], // Роли, которые не могут создать тикеты (например, черный список)
    "pingRoleWhenOpened": true,
    "roleToPingWhenOpenedId": ["1111111111111111111"], // Роль, которая будет проверяться при открытии заявки

    "logs": true,
    "logsChannelId": "1111111111111111111", // Идентификатор канала, по которому будут отправляться журналы
    "claimButton": true,

    "whoCanCloseTicket": "STAFFONLY", // STAFFONLY ((роли, настроенные в "rolesWhoHaveAccessToTheTickets") или EVERYONE
    "closeButton": true, // Если значение false, тикет может быть закрыт только путем выполнения /закрывает
    "askReasonWhenClosing": true, // Если это неверно, билет будет закрыт без объяснения причины

    "createTranscript": true, // Если установлено значение true, то при закрытии заявки будет сгенерирована расшифровка и отправлена по каналу журналов

    "status": {
        "enabled": true, // Если вы хотите включить статус бота
        "text": "Discord Bot", // Текст статуса
        "type": "PLAYING", // PLAYING, WATCHING, LISTENING, STREAMING, COMPETING
        "url": "https://www", // URL-адрес статуса, если тип является ПОТОКОВЫМ (может быть пустым)
        "status": "online" // онлайн, в режиме ожидания, dnd, невидимый устанавливается в онлайн, если тип является потоковым
    },

    "maxTicketOpened": 0 // Количество билетов, которые пользователь может открыть, пока другой уже открыт. Установите значение 0 для неограниченного количества
}
Далее перейти в файле .env.example и файле config.example.jsonc удалить приписку .example 
Документация доступна и инструкция по установке

Edited by Cemper


Type

клиентский мод

Compatible version

Любая

Terms of use

There are no restrictions

Нет ограничений 


Actions after purchase

Внимательно прочитать Способ установки и запуска бота.

You can write in the comments or to my discord if you need help.

DISCORD: _cemper_

 

Можете написать в комментариях или мне в дискорд, если понадобится помощь.

DISCORD: _cemper_

 

 


Co - authors

Sayrix

Communication with the developer

Sayrix

Acceptance of the terms of the trading platform

Yes
  • Like 32
  • Thanks 2
 Share


Other products Cemper

Отзывы пользователей

You may only provide a review once you have downloaded the file.

There are no reviews to display.

×
×
  • Create New...