Skip to content

Instantly share code, notes, and snippets.

@Default-01
Last active April 3, 2023 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Default-01/632ae1ff0a48cba9bdfa1f4b01823e87 to your computer and use it in GitHub Desktop.
Save Default-01/632ae1ff0a48cba9bdfa1f4b01823e87 to your computer and use it in GitHub Desktop.
AdvancedTicketBot
ticket bot config
module.exports = {
token: '',
guildId: '984577959648174121',
accountId: '',
database: {
host: 'localhost',
user: 'root',
password: '',
database: 'nggticketbot',
port: 3306,
},
styling: {
colors: {
primary: 0x038cb5,
error: 0xcc3131,
success: 0x77b255,
},
thumbnail: '',
image: '',
},
playerDataIntegration: {
enabled: true,
linkingDatabase: {
host: 'localhost', // Host of the database
user: 'root', // Username of the database
password: '', // Password of the database
database: 'kalscrosschat', // Name of the database
linkingTableName: 'discordsteamlinks', // Name of the table that stores the player links
linkingTableDiscordIdColumn: 'DiscordId', // Name of the column that stores the discord ids of the linked players
linkingTableUuIdColumn: 'SteamId', // Name of the column that stores the steam ids of the linked players
},
playerInfoDatabase: {
host: 'localhost', // Host of the database
user: 'root', // Username of the database
password: '', // Password of the database
database: 'kalscrosschat', // Name of the database
playerInfoTableName: 'currentplayers', // Name of the table that stores the player info
playerUuidColumn: 'SteamId', // Name of the column that stores the steam ids of the players
},
infoDisplayFields: [
{
name: 'Steam ID',
value: '```{value}```',
column: 'SteamId',
inline: false,
},
{
name: 'Steam Name', // Name of the field
value: '```{value}```', // Value of the field (use {value} to get the value from the selected column)
column: 'PlayerName', // Name of the column in the database
inline: true, // Whether the field should be inline or not
},
{
name: 'Player Name', // Name of the field
value: '```{value}```', // Value of the field (use {value} to get the value from the selected column)
column: 'CharacterName', // Name of the column in the database
inline: true, // Whether the field should be inline or not
},
{
name: 'Player ID',
value: '```{value}```',
column: 'PlayerId',
inline: true,
},
{
name: 'Tribe Name', // Name of the field
value: '```{value}```', // Value of the field (use {value} to get the value from the selected column)
column: 'TribeName', // Name of the column in the database
inline: true, // Whether the field should be inline or not
},
{
name: 'tribe ID',
value: '```{value}```',
column: 'TribeId',
inline: true,
},
{
name: 'Server Name',
value: '```{value}```',
column: 'ServerKey',
inline: true,
},
{
name: 'Permissions',
value: '```{value}```',
column: 'Permissions',
inline: false,
},
],
},
tickets: {
maxTickets: 2,
panels: [
{
uniqueID: 'support',
name: 'Support',
maxTicketsPerUser: 2,
newTicketscategoryId: '1087306132181225502',
activeTicketsCategoryId: '1091686141780050041',
pendingTicketsCategoryId: '1091686105868414976',
transcriptChannelId: '1087306173872619560',
staffRoleId: '1015588499971395614',
autoMarkTicketAsPending: true,
autoMarkTicketsAsActive: true,
pendingTimerMinutes: 5,
pendingTicketDeleteTimerHours: 48,
message: {
title: 'Custom Commissions',
description: 'Click the category buttons below to create a ticket.\n\n**Note:** If you select the wrong category your ticket will be deleted.',
footer: 'Custom Commissions',
color: 0x03adfc,
thumbnail: '',
image: '',
},
categories: [
{
uniqueID: 'support',
button: {
label: 'support',
style: 'Secondary', // Options: https://discord.com/developers/docs/interactions/message-components#button-object-button-styles
emoji: '🎫',
disabled: false,
},
message: {
title: 'Request a custom bot',
description: 'Once you completed the ticket questions our support team will reach out to you!',
footer: 'DBD Support',
color: 0x03adfc,
thumbnail: '',
image: '',
},
questions: [
{
type: 'message',
question: 'Question 1',
description: 'Description 1',
},
{
type: 'button',
question: 'Question 2',
description: 'Answer the question below:',
buttons: [
{
label: 'Yes',
style: 'Success',
emoji: '✅',
},
{
label: 'No',
style: 'Danger',
emoji: '❌',
},
],
},
{
type: 'menu',
question: 'Question 3',
description: 'Answer the question below:',
options: [
{
name: 'The Island',
emoji: '1️⃣',
},
{
name: 'Ragnarok',
emoji: '2️⃣',
},
],
},
{
type: 'message',
question: 'Question 3',
description: 'Answer the question below:',
},
],
},
],
},
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment