diff --git a/Addons/hello.js b/Addons/hello.js index 6814478..e87b181 100644 --- a/Addons/hello.js +++ b/Addons/hello.js @@ -5,8 +5,10 @@ const fs = require("fs"); const Discord = require("discord.js"); const yaml = require("js-yaml"); -const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8")); -const cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8")); +const supportbot = yaml.load( + fs.readFileSync("./Configs/supportbot.yml", "utf8") +); +const cmdconfig = yaml.load(fs.readFileSync("./Configs/commands.yml", "utf8")); // Your Addon Config file! Saved in /Addons/Settings/YourAddonConfig.yml // const exampleaddon = yaml.load(fs.readFileSync('./Addons/Settings/YourAddonConfig.yml', 'utf8')); diff --git a/Configs/supportbot.yml b/Configs/supportbot.yml new file mode 100644 index 0000000..55b4355 --- /dev/null +++ b/Configs/supportbot.yml @@ -0,0 +1,196 @@ +# ___ _ ___ _ +# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_ +# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | | +# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_| +# |_| |_| +# +# SupportBot created by Emerald Services +# Installed with MIT License +# +# Discord Support: https://emeraldsrv.dev/discord +# Community Resources: https://emeraldsrv.dev/resources + +SupportBot_Version: "7.3" + +# ------------------------- +# General Configuration +# ------------------------- + +Name: "SupportBot" +# No Prefix, as everything uses the new Slash (/) Commands feature! +Token: "BOT_TOKEN" + +# ------------------------- +# Activity Configuration +# ------------------------- + +BotActivity: "Need Help? /ticket" + +StreamingURL: "https://www.twitch.tv/YOUR_TWITCH_NAME" +# Set The ActivityType to "STREAMING" for a streaming status! + +ActivityType: "PLAYING" +# Activity status can either be PLAYING, WATCHING, LISTENING or STREAMING. + +# ------------------------- +# Embed Configuration +# ------------------------- + +EmbedColour: "#f74343" +EmbedFooter: "SupportBot | An Advanced Ticket System" + +ErrorColour: "#d12519" +SuccessColour: "#04b545" +WarningColour: "#fca117" + +# ------------------------- +# Information Configuration +# ------------------------- + +InfoTitle: "Information" +AboutMe: "Hi, I'm SupportBot an advanced discord ticket bot with 100% customization! [Download](https://emeraldsrv.dev/download)" + +InfoButtonText: "Visit Site" +InfoURL: "https://emeraldsrv.dev" +InfoColour: "#f74343" + +# ------------------------- +# Help Configuration +# ------------------------- + +HelpMenu: true # Do not change! +SendHelpPage: "channel" # Set to channel or dm + +# ------------------------- +# Role Configuration +# ------------------------- + +AutoRole: true +AutoRole_Role: "Member" +LockdownRole: "@everyone" + +Staff: "Staff" +Admin: "Admin" +TicketBlackListRole: "Blacklisted" + +# ---------------------------- +# Suggestions Configuration +# ---------------------------- + +SuggestionChannel: "suggestions" +SuggestionUpvote: "✅" +SuggestionDownvote: "❌" + +# ------------------------- +# Tickets Configuration +# ------------------------- + +TicketCategory: "Tickets" +TicketPrefix: "ticket-" # The prefix for ticket channel names + +TicketLog: "logs" +TranscriptLog: "transcripts" + +TranscriptTitle: "Ticket Transcript" +TicketLog_Title: "Ticket Log" +TicketBlackListMessage: "You are not allowed to open a ticket" + +TicketSubject: "description" +# "description" will displays the ticket reason within the channel description +# "embed" will displays the ticket reason within the ticket embed + +AllowTicketMentions: true +# Set to true to allow the ticket to mention the author and the support team. +# Set to false to dis-allow mentions within tickets. + +# --- Creation Config --- +# --- Start --- + +# Available Placeholders: + +# %ticketusername% - User who created the ticket. +# <@%ticketauthor%> - Tags the user who created the ticket. +# <#%ticketid%> - Mentions the ticket channel. + +Ticket_Title: "Server Support | %ticketusername%" +TicketMessage: "Hello <@%ticketauthor%>, Thank you for creating a support ticket\nPlease wait patiently whilst a member of our team reaches out to you." + +Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" +NoTicketSubject: "No Reason Provided!" + +TicketCreatedAlert: ":ticket: Your support ticket has been created: <#%ticketid%>" + +AddedUser: "👍 <@%user%> has been added to this ticket" +RemovedUser: "👍 <@%user%> has been removed from this ticket" + +# --- Buttons Config --- +# --- Start --- + +# Discord Button Colour Selection +# PRIMARY - Blurple +# DANGER - Red +# SUCCESS - Green +# Secondary - Grey + +TicketLockReaction: "🔒" +TicketDeleteReaction: "⛔" +LockTicketCategory: "Archive" + +TicketCloseEmoji: "❌" +TicketDeleteEmoji: "⛔" +TicketLockEmoji: "🔒" + +TicketCloseColour: "DANGER" +TicketDeleteColour: "DANGER" +TicketLockColour: "PRIMARY" + +TicketDept1Colour: "PRIMARY" +TicketDept2Colour: "PRIMARY" +TicketDept3Colour: "PRIMARY" + +TicketDept1Emoji: "1️⃣" +TicketDept2Emoji: "2️⃣" +TicketDept3Emoji: "3️⃣" + +TranscriptSavedMessage: "📝 **Transcript Saved!**" +TicketLockMessage: "❌ **Ticket Locked!**" +TicketDeleteMessage: "⚠ **Ticket Deleting!**" # Tickets deleting after 5 seconds by default. +TicketDeleteTime: 5000 # Time must be set in milliseconds. + +# --- Departments Config --- +# --- Start --- + +TicketDepartments: true + +AllowStaff: true +# If set to false users with the "Staff" role will not be able to view tickets +# without a valid department role set below. + +# Set to false to allow "Staff" to see tickets whether its a department for them or not. + +DepartmentTitle_1: "General Support" +DepartmentTitle_2: "Billing Support" +DepartmentTitle_3: "Admin Team" +# Ticket department title, This is the title for a ticket department to help users know what is available. + +DepartmentRole_1: "Support" +DepartmentRole_2: "Support" +DepartmentRole_3: "Admin" +# Ticket roles are the roles that will be able to gain access to tickets depending on what department has been chosen. + +# --- Closing Config --- +# --- Start --- + +ClosingTicket: ":warning: You have requested to close your support ticket." +ClosingConfirmation_Word: "confirm" +CloseConfirmation: false + +# --------------------------- +# Error / Warning Messages +# --------------------------- + +IncorrectPerms: ":x: **Err!** You do not have the correct permissions to use this command." +InvalidChannel: ":x: **Err!** Channel not found. Please create it!" +UserNotFound: ":x: **Err!** This user doesn't exist, Are they in this server?" +NoValidTicket: ":warning: You cannot execute this command here." +TicketExists: ":warning: This ticket cannot be opened, It already exists!" diff --git a/Data/ticket-panel-id.json b/Data/ticket-panel-id.json new file mode 100644 index 0000000..b2367c6 --- /dev/null +++ b/Data/ticket-panel-id.json @@ -0,0 +1,3 @@ +{ + "TicketPanelID": "" +} diff --git a/Data/ticket-panel-id.yml b/Data/ticket-panel-id.yml deleted file mode 100644 index 2912e7f..0000000 --- a/Data/ticket-panel-id.yml +++ /dev/null @@ -1 +0,0 @@ -TicketPanelID: ''