Compare commits

..
19 Commits
Author SHA1 Message Date
ItzEmerald 0827f55d43 Update guildMemberAdd.js 2021-03-31 01:21:34 +01:00
ItzEmerald ba6ff8c342 Update node.js.yml 2021-03-31 00:28:35 +01:00
ItzEmerald c0b7dc2737 Create node.js.yml 2021-03-31 00:27:10 +01:00
ItzEmerald ab6abd453b Delete node_modules directory 2021-03-30 20:20:33 +01:00
ItzEmerald 77921aca75 Update ready.js 2021-03-30 20:18:37 +01:00
ItzEmerald a8f91c4814 Update messageReactionAdd.js 2021-03-30 20:12:29 +01:00
ItzEmerald 7780fa792c Updated 2021-03-27 16:58:27 +00:00
ItzEmerald 41e4c376ec Merge branch 'master' of https://github.com/1tzemerald/SupportBot 2021-03-27 16:22:37 +00:00
ItzEmerald 09aad61cfe SB-6.3-BETA 2
Added Moderation
Added Node Modules
2021-03-27 16:22:19 +00:00
ItzEmerald 31ac81428f Update ready.js 2021-03-24 20:56:57 +00:00
ItzEmerald 60daab82d2 Merge branch 'master' of https://github.com/1tzemerald/SupportBot 2021-03-24 16:26:21 +00:00
ItzEmerald e7a0544004 Added Image to ReactionPanel 2021-03-24 16:25:16 +00:00
ItzEmerald ff0364bba8 Update supportbot-config_FR.yml 2021-03-17 16:04:41 +00:00
ItzEmerald a3b64be351 Update supportbot-config_ES.yml 2021-03-17 16:03:52 +00:00
ItzEmerald eae370e346 Update README.md 2021-03-17 14:36:11 +00:00
ItzEmerald 0d86b50a83 Update supportbot-config_ENG.yml 2021-03-17 14:35:45 +00:00
ItzEmerald 543b9028a3 Update supportbot-config_ES.yml 2021-03-17 14:35:15 +00:00
ItzEmerald 867f12d11f Update supportbot-config_FR.yml 2021-03-17 14:33:13 +00:00
ItzEmerald 462781ea6a Update supportbot-config_GER.yml 2021-03-17 14:31:37 +00:00
18 changed files with 521 additions and 36 deletions

No files matched your search

Vendored
BIN
View File
Binary file not shown.
+32
View File
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install discord.js --save
- run: npm install js-yaml
- run: npm run build --if-present
- run: node index.js
+110
View File
@@ -0,0 +1,110 @@
// SupportBot, Created by Emerald Services
// Say Command
const Discord = require("discord.js");
const fs = require("fs");
const yaml = require('js-yaml');
const { execute } = require("./help");
const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'));
module.exports = {
name: supportbot.BanUser,
description: supportbot.BanDesc,
execute(message, args, member) {
if (supportbot.DeleteMessages == "true") message.delete();
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Admin);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.BanUser}!`);
const NoPerms = new Discord.MessageEmbed()
.setTitle("Invalid Permissions!")
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${SupportStaff.name}\``)
.setColor(supportbot.WarningColour)
if (!message.member.roles.cache.has(SupportStaff.id))
return message.channel.send({ embed: NoPerms });
let locateChannel = message.guild.channels.cache.find(ModLogChannel => ModLogChannel.name === supportbot.ModLogChannel);
const errornochannel = new Discord.MessageEmbed()
.setTitle("Invalid Channel")
.setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.ModLogChannel}\``)
.setColor(supportbot.ErrorColour);
if(!locateChannel) return message.channel.send({ embed: errornochannel });
const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
const embed1 = new Discord.MessageEmbed()
.setDescription("> :x: Please provide a reason to ban.\n\n`Try Again!`")
.setColor(supportbot.ErrorColour)
if (!args[0]) return message.channel.send({
embed: embed1
});
const embed2 = new Discord.MessageEmbed()
.setDescription("> :detective: **Hmm!** Can\'t seem tp find this user.\n\n`Are they in the server?`")
.setColor(supportbot.EmbedColour)
if (!user) return message.channel.send({
embed: embed2
})
const embed3 = new Discord.MessageEmbed()
.setDescription("> :x: **Err No!** Cannot punish this user!\n\n`Reason: Their permissions and or roles are greater than mine.`")
.setColor(supportbot.EmbedColour)
if(!user.bannable) return message.channel.send({
embed: embed3
});
const embed4 = new Discord.MessageEmbed()
.setDescription("> :joy: **OML!** Did you really just try to ban yourself!")
.setColor(supportbot.EmbedColour)
if(user.id === message.author.id) return message.channel.send({
embed: embed4
});
let reason = args.slice(1).join(" ");
if(!reason) reason = 'No Reason Provided.';
const embed5 = new Discord.MessageEmbed()
.setDescription("> :thinking: **Hmm** Something seems to have gone wrong.\n\n`Check your system for errors!`")
.setColor(supportbot.EmbedColour)
user.ban({ days: supportbot.DaysBannedFor, reason: `${reason}` }).catch(err => {
message.channel.send({ embed: embed5 })
console.log(err)
})
const successEmbed = new Discord.MessageEmbed()
.setDescription(`> :white_check_mark: **OOF!** ${user} has been banned!`)
.setColor(supportbot.SuccessColour)
message.channel.send({
embed: successEmbed
})
const logEmbed = new Discord.MessageEmbed()
.setTitle(supportbot.BanTitle)
.setThumbnail(supportbot.ModThumbnail)
.addField('Banned User:', user)
.addField('Staff Member', message.author)
.addField('Reason:', reason)
.setFooter(supportbot.EmbedFooter)
.setColor(supportbot.BanLogColour)
.setTimestamp()
locateChannel.send({ embed: logEmbed })
}
};
+15 -7
View File
@@ -16,6 +16,7 @@ module.exports = {
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.HelpCommand}!`); console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.HelpCommand}!`);
if (supportbot.helpmenu_withkey = "true") {
let generalCommands = ""; let generalCommands = "";
generalCommands += `**${supportbot.Prefix}${supportbot.HelpCommand}** ${supportbot.HelpDesc}\n`; generalCommands += `**${supportbot.Prefix}${supportbot.HelpCommand}** ${supportbot.HelpDesc}\n`;
generalCommands += `**${supportbot.Prefix}${supportbot.LinksCommand}** ${supportbot.LinkDesc}\n`; generalCommands += `**${supportbot.Prefix}${supportbot.LinksCommand}** ${supportbot.LinkDesc}\n`;
@@ -30,26 +31,33 @@ module.exports = {
staffCommands += `**${supportbot.Prefix}${supportbot.AddUser} <user#0000>** ${supportbot.AddUserDesc}\n` staffCommands += `**${supportbot.Prefix}${supportbot.AddUser} <user#0000>** ${supportbot.AddUserDesc}\n`
staffCommands += `**${supportbot.Prefix}${supportbot.RemoveUser} <user#0000>** ${supportbot.RemoveUserDesc}\n` staffCommands += `**${supportbot.Prefix}${supportbot.RemoveUser} <user#0000>** ${supportbot.RemoveUserDesc}\n`
staffCommands += `**${supportbot.Prefix}${supportbot.BotSay}** ${supportbot.BotSayDesc}\n` staffCommands += `**${supportbot.Prefix}${supportbot.BotSay}** ${supportbot.BotSayDesc}\n`
staffCommands += `**${supportbot.Prefix}${supportbot.AnnounceCommand}** ${supportbot.AnnounceDesc}\n` staffCommands += `**${supportbot.Prefix}${supportbot.PurgeMessage}** ${supportbot.PurgeDesc}\n`
staffCommands += `**${supportbot.Prefix}${supportbot.AnnounceCommand}** ${supportbot.AnnounceDesc} \`Admin Only\`\n`
staffCommands += `**${supportbot.Prefix}${supportbot.BanUser}** ${supportbot.BanDesc} \`Admin Only\` \n`
staffCommands += `**${supportbot.Prefix}${supportbot.KickUser}** ${supportbot.KickDesc} \`Admin Only\` \n`
const HelpCommandEmbed = new Discord.MessageEmbed() const HelpEmbed1 = new Discord.MessageEmbed()
.setTitle(supportbot.Bot_Name) .setTitle(supportbot.Bot_Name)
.setThumbnail(message.author.displayAvatarURL()) .setThumbnail(message.author.displayAvatarURL())
.addFields( .addFields(
{ name: '🖥️ General Commands', value: `${generalCommands}\n`, inline: false }, { name: '🖥️ General Commands\n', value: `${generalCommands}\n`, inline: false },
{ name: '🎫 Support Commands', value: `${supportCommands}\n`, inline: false }, { name: '🎫 Support Commands\n', value: `${supportCommands}\n`, inline: false },
) )
.setColor(supportbot.EmbedColour) .setColor(supportbot.EmbedColour)
.setFooter(supportbot.EmbedFooter, message.author.displayAvatarURL()); .setFooter(supportbot.EmbedFooter, message.author.displayAvatarURL());
if (message.member.roles.cache.some(role => role.name === supportbot.Staff || supportbot.Admin)) { if (message.member.roles.cache.some(role => role.name === supportbot.Staff || supportbot.Admin)) {
HelpCommandEmbed.addFields( HelpEmbed1.addFields(
{ name: '🔐 Staff Commands', value: `${staffCommands}\n`, inline: false }, { name: '🔐 Staff Commands\n', value: `${staffCommands}\n`, inline: false },
) )
} }
message.channel.send({ embed: HelpCommandEmbed }); message.channel.send({
embed: HelpEmbed1
});
}
} }
}; };
+111
View File
@@ -0,0 +1,111 @@
// SupportBot, Created by Emerald Services
// Say Command
const Discord = require("discord.js");
const fs = require("fs");
const yaml = require('js-yaml');
const { execute } = require("./help");
const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'));
module.exports = {
name: supportbot.KickUser,
description: supportbot.KickDesc,
execute(message, args, member) {
if (supportbot.DeleteMessages == "true") message.delete();
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Admin);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.BanUser}!`);
const NoPerms = new Discord.MessageEmbed()
.setTitle("Invalid Permissions!")
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${SupportStaff.name}\``)
.setColor(supportbot.WarningColour)
if (!message.member.roles.cache.has(SupportStaff.id))
return message.channel.send({ embed: NoPerms });
let locateChannel = message.guild.channels.cache.find(ModLogChannel => ModLogChannel.name === supportbot.ModLogChannel);
const errornochannel = new Discord.MessageEmbed()
.setTitle("Invalid Channel")
.setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.ModLogChannel}\``)
.setColor(supportbot.ErrorColour);
if(!locateChannel) return message.channel.send({ embed: errornochannel });
const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
const embed1 = new Discord.MessageEmbed()
.setDescription("> :x: Please provide a reason to kick.\n\n`Try Again!`")
.setColor(supportbot.ErrorColour)
if (!args[0]) return message.channel.send({
embed: embed1
});
const embed2 = new Discord.MessageEmbed()
.setDescription("> :detective: **Hmm!** Can\'t seem tp find this user.\n\n`Are they in the server?`")
.setColor(supportbot.EmbedColour)
if (!user) return message.channel.send({
embed: embed2
})
const embed3 = new Discord.MessageEmbed()
.setDescription("> :x: **Err No!** Cannot punish this user!\n\n`Reason: Their permissions and or roles are greater than mine.`")
.setColor(supportbot.EmbedColour)
if(!user.kickable) return message.channel.send({
embed: embed3
});
const embed4 = new Discord.MessageEmbed()
.setDescription("> :joy: **OML!** Did you really just try to kick yourself!")
.setColor(supportbot.EmbedColour)
if(user.id === message.author.id) return message.channel.send({
embed: embed4
});
let reason = args.slice(1).join(" ");
if(!reason) reason = 'No Reason Provided.';
const embed5 = new Discord.MessageEmbed()
.setDescription("> :thinking: **Hmm** Something seems to have gone wrong.\n\n`Check your system for errors!`")
.setColor(supportbot.EmbedColour)
user.kick({ reason: `${reason}` }).catch(err => {
message.channel.send({ embed: embed5 })
console.log(err)
})
const successEmbed = new Discord.MessageEmbed()
.setDescription(`> :white_check_mark: **OOF!** ${user} has been kicked!`)
.setColor(supportbot.SuccessColour)
message.channel.send({
embed: successEmbed
})
const logEmbed = new Discord.MessageEmbed()
.setTitle(supportbot.KickTitle)
.setThumbnail(supportbot.ModThumbnail)
.addField('Kicked User:', user)
.addField('Staff Member', message.author)
.addField('Reason:', reason)
.setFooter(supportbot.EmbedFooter)
.setColor(supportbot.KickLogColour)
.setTimestamp()
locateChannel.send({ embed: logEmbed })
}
};
+82
View File
@@ -0,0 +1,82 @@
// SupportBot, Created by Emerald Services
// Say Command
const Discord = require("discord.js");
const fs = require("fs");
const yaml = require('js-yaml');
const { execute } = require("./help");
const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'));
module.exports = {
name: supportbot.PurgeMessage,
description: supportbot.PurgeDesc,
execute(message, args, member) {
if (supportbot.DeleteMessages == "true") message.delete();
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.PurgeMessage}!`);
const NoPerms = new Discord.MessageEmbed()
.setTitle("Invalid Permissions!")
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${SupportStaff.name}\``)
.setColor(supportbot.WarningColour)
if (!message.member.roles.cache.has(SupportStaff.id))
return message.channel.send({ embed: NoPerms });
let locateChannel = message.guild.channels.cache.find(ModLogChannel => ModLogChannel.name === supportbot.ModLogChannel);
const errornochannel = new Discord.MessageEmbed()
.setTitle("Invalid Channel")
.setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.ModLogChannel}\``)
.setColor(supportbot.ErrorColour);
if(!locateChannel) return message.channel.send({ embed: errornochannel });
const embed1 = new Discord.MessageEmbed()
.setDescription(`> :thinking: **Hmm!** Please enter a valid number of message to purge!\n\n\`${supportbot.Prefix}${supportbot.PurgeMessage} <message count>\` `)
.setColor(supportbot.WarningColour)
if (!args[0]) return message.channel.send({
embed: embed1
});
const messagePrune = parseInt(args[0])
const embed2 = new Discord.MessageEmbed()
.setDescription("> :person_facepalming: **Grr!** Can you count? That ain't a number :joy:")
.setColor(supportbot.ErrorColour)
if (isNaN(messagePrune)) return message.reply({
embed: embed2
})
message.channel.bulkDelete(messagePrune).then(() => {
const embed3 = new Discord.MessageEmbed()
.setDescription(`> :recycle: \`${args[0]} messages\` **have been purged!** `)
.setColor(supportbot.ErrorColour)
message.channel.send({
embed: embed3
})
})
const logEmbed = new Discord.MessageEmbed()
.setTitle(supportbot.PruneLogTitle)
.setThumbnail(supportbot.PruneThumbnail)
.addField('Messages Purged', `\`${args[0]} messages\``)
.addField('Staff Member', message.author)
.setFooter(supportbot.EmbedFooter)
.setColor(supportbot.PruneColour)
.setTimestamp()
locateChannel.send({ embed: logEmbed })
}
};
+2 -1
View File
@@ -22,9 +22,10 @@ module.exports = async (bot, member) => {
member.roles.add(role).catch(console.error); member.roles.add(role).catch(console.error);
if (supportbot.SystemMessage_Type === "embed") { if (supportbot.SystemMessage_Type === "embed") {
const GuildAddMember = new Discord.MessageEmbed() const GuildAddMember = new Discord.MessageEmbed()
.setTitle(supportbot.Welcome_Title) .setTitle(supportbot.Welcome_Title)
.setDescription(supportbot.WelcomeMessage.replace(/%member%/g, member.user.username).replace(/%guildname%/g, member.guild.name)) .setDescription(supportbot.WelcomeMessage.replace(/%member%/g, `<@!${member.user.id}>`).replace(/%guildname%/g, member.guild.name))
.setColor(supportbot.EmbedColour) .setColor(supportbot.EmbedColour)
if (supportbot.SystemMessage_Icon === "BOT") { if (supportbot.SystemMessage_Icon === "BOT") {
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = async (client, reaction, user) => {
channel: reaction.message.channel channel: reaction.message.channel
} }
if (supportbot.ReactionTickets === "true") { if (supportbot.ReactionTickets === true) {
if (reaction.message.id === tickets.ReactionMessage_ID) { if (reaction.message.id === tickets.ReactionMessage_ID) {
if (reaction.emoji.name == supportbot.ReactionEmoji || reaction.emoji.id == supportbot.ReactionEmoji) { if (reaction.emoji.name == supportbot.ReactionEmoji || reaction.emoji.id == supportbot.ReactionEmoji) {
await reaction.users.remove(user.id) await reaction.users.remove(user.id)
+7 -3
View File
@@ -20,7 +20,7 @@ module.exports = async (bot) => {
console.log(`\u001b[37m`, `${supportbot.Bot_Name} has successfully connected to discord`) console.log(`\u001b[37m`, `${supportbot.Bot_Name} has successfully connected to discord`)
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`) console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
if (supportbot.ReactionTickets === "true") { if (supportbot.ReactionTickets === true) {
let chan1 = bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel) let chan1 = bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel)
if (!chan1) { if (!chan1) {
@@ -34,14 +34,18 @@ module.exports = async (bot) => {
.setColor(supportbot.SuccessColour) .setColor(supportbot.SuccessColour)
.setFooter(supportbot.EmbedFooter); .setFooter(supportbot.EmbedFooter);
if (supportbot.ReactionPanel_Description = true) { if (supportbot.ReactionPanel_Description === true) {
embed.setDescription(supportbot.ReactionDescription) embed.setDescription(supportbot.ReactionDescription)
} }
if (supportbot.ReactionPanel_Thumbnail = true) { if (supportbot.ReactionPanel_Thumbnail === true) {
embed.setThumbnail(supportbot.ReactionThumbnail) embed.setThumbnail(supportbot.ReactionThumbnail)
} }
if (supportbot.ReactionPanel_Image === true) {
embed.setImage(supportbot.ReactionImage)
}
bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel).send({ bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel).send({
embed: embed embed: embed
}).then(r => { }).then(r => {
+5
View File
@@ -1,3 +1,8 @@
SupportBot Language Compatibility SupportBot Language Compatibility
In order to switch languages simple remove the current existig configuration file and replace it with one of the files here renamnig the file to "supportbot-config.yml" from (for example) "supportbot-config_es.yml" to home directory of SupportBot. In order to switch languages simple remove the current existig configuration file and replace it with one of the files here renamnig the file to "supportbot-config.yml" from (for example) "supportbot-config_es.yml" to home directory of SupportBot.
-> Delete the existing supportbot-config.yml file
-> Download the new file for whatever language
-> Upload the file to SupportBot and rename it to supportbot-config.yml
-> Job Done, restart the bot :wink:
+36 -2
View File
@@ -45,6 +45,12 @@ LockdownRole: "@everyone"
Staff: "Staff" Staff: "Staff"
Admin: "Admin" Admin: "Admin"
# Help Configuration
HelpMenu_withKey: "false"
# If set to true, emojis will be used as a key to define the access level of commands.
# Ticket Configuration # Ticket Configuration
TicketChannel: "ticket" TicketChannel: "ticket"
@@ -58,14 +64,19 @@ AllowTicketMentions: "true"
# Set to "true" to allow the ticket to mention the author and the support team. # Set to "true" to allow the ticket to mention the author and the support team.
# Set to "false" to dis-allow mentions within tickets. # Set to "false" to dis-allow mentions within tickets.
# Ticket Panel (Ticket Reaction Create) # Ticket Panel (Ticket Reaction Create)
ReactionTickets: "true" ReactionTickets: true
ReactionMessage: "React with %reaction_emoji% to create a Support Ticket!" ReactionMessage: "React with %reaction_emoji% to create a Support Ticket!"
ReactionPanel_Description: true
ReactionDescription: "Create a support ticket to contact a member of staff."
ReactionChannel: "create-ticket" ReactionChannel: "create-ticket"
ReactionEmoji: "📩" ReactionEmoji: "📩"
# Custom Emojis: <:test:EMOJI_ID> # Custom Emojis: <:test:EMOJI_ID>
ReactionPanel_Thumbnail: true
ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png"
ReactionPanel_Image: true
ReactionImage: "https://wallpapercave.com/wp/wp4462546.jpg"
Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png"
Ticket_Title: "Server Support | %ticketusername%" Ticket_Title: "Server Support | %ticketusername%"
@@ -150,6 +161,23 @@ AnnouncementIcon: "https://i.imgur.com/HbkZyB7.png"
AnnouncementStarter: "What would you like to announce?" AnnouncementStarter: "What would you like to announce?"
# Moderation System Configuration
BanTitle: "User Banned!"
DaysBannedFor: 7
BanLogColour: "#D911B4"
KickTitle: "User Kicked!"
KickLogColour: "#D9B111"
ModThumbnail: "https://i.imgur.com/l6P3DF6.png"
ModLogChannel: "mod-logs"
PruneLogTitle: "Bulk Delete"
PruneThumbnail: "https://i.imgur.com/OAgW2vR.png"
PruneColour: "#1BA30C"
# General Command Configuration # General Command Configuration
HelpCommand: "help" HelpCommand: "help"
@@ -168,10 +196,13 @@ RenameTicket: "rename"
# Staff Command Configuration # Staff Command Configuration
BotSay: "say" BotSay: "say"
PurgeMessage: "purge"
# Admin Command Configuration # Admin Command Configuration
AnnounceCommand: "announce" AnnounceCommand: "announce"
BanUser: "ban"
KickUser: "kick"
# Commmand Descriptions # Commmand Descriptions
@@ -185,6 +216,9 @@ RemoveUserDesc: "Remove a user from a support ticket"
AddUserDesc: "Add a user to a support ticket" AddUserDesc: "Add a user to a support ticket"
SuggestionDesc: "Create a server suggestion" SuggestionDesc: "Create a server suggestion"
BotSayDesc: "Say something with the bot" BotSayDesc: "Say something with the bot"
BanDesc: "Ban a member from this server."
KickDesc: "Kick a member from this server."
PurgeDesc: "Purge messages from the chat."
# Error / Warining Messages # Error / Warining Messages
+30 -3
View File
@@ -58,14 +58,19 @@ AllowTicketMentions: "true"
# Establecer en "true" para permitir que el boleto mencione al autor y al equipo de apoyo. # Establecer en "true" para permitir que el boleto mencione al autor y al equipo de apoyo.
# Establecer en "false" para desautorizar las menciones dentro de los boletos. # Establecer en "false" para desautorizar las menciones dentro de los boletos.
# Ticket Panel (Ticket Reaction Create) # Ticket Panel (Ticket Reaction Create)
ReactionTickets: "true" ReactionTickets: "true"
ReactionMessage: "React with %reaction_emoji% to create a Support Ticket!" ReactionMessage: "React with %reaction_emoji% para crear un Ticket de Soporte!"
ReactionChannel: "create-ticket" ReactionChannel: "crear-ticket"
ReactionPanel_Description: "true"
ReactionDescription: "Cree un ticket de soporte para contactar a un miembro del personal."
ReactionEmoji: "📩" ReactionEmoji: "📩"
# Custom Emojis: <:test:EMOJI_ID> # Custom Emojis: <:test:EMOJI_ID>
ReactionPanel_Thumbnail: true
ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png"
ReactionPanel_Image: true
ReactionImage: "https://wallpapercave.com/wp/wp4462546.jpg"
Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png"
Ticket_Title: "Server Support | %ticketusername%" Ticket_Title: "Server Support | %ticketusername%"
@@ -150,6 +155,22 @@ AnnouncementIcon: "https://i.imgur.com/HbkZyB7.png"
AnnouncementStarter: "¿Qué te gustaría anunciar?" AnnouncementStarter: "¿Qué te gustaría anunciar?"
# Moderation System Configuration
BanTitle: "User Banned!"
DaysBannedFor: 7
BanLogColour: "#D911B4"
KickTitle: "User Kicked!"
KickLogColour: "#D9B111"
ModThumbnail: "https://i.imgur.com/l6P3DF6.png"
ModLogChannel: "mod-logs"
PruneLogTitle: "Bulk Delete"
PruneThumbnail: "https://i.imgur.com/OAgW2vR.png"
PruneColour: "#1BA30C"
# General Command Configuration # General Command Configuration
HelpCommand: "ayuda" HelpCommand: "ayuda"
@@ -168,10 +189,13 @@ RenameTicket: "renombrar"
# Staff Command Configuration # Staff Command Configuration
BotSay: "decir" BotSay: "decir"
PurgeMessage: "purge"
# Admin Command Configuration # Admin Command Configuration
AnnounceCommand: "anunciar" AnnounceCommand: "anunciar"
BanUser: "ban"
KickUser: "kick"
# Commmand Descriptions # Commmand Descriptions
@@ -185,6 +209,9 @@ RemoveUserDesc: "Eliminar un usuario de un ticket de soporte"
AddUserDesc: "Add un usuario a un ticket de soporte" AddUserDesc: "Add un usuario a un ticket de soporte"
SuggestionDesc: "Crear una sugerencia de servidor" SuggestionDesc: "Crear una sugerencia de servidor"
BotSayDesc: "Di algo con el bot" BotSayDesc: "Di algo con el bot"
BanDesc: "Prohibir a un/una miembro de este servidor."
KickDesc: "Patea a un/una miembro de este servidor."
PurgeDesc: "Purga los mensajes del chat."
# Error / Warining Messages # Error / Warining Messages
+29
View File
@@ -64,8 +64,14 @@ AllowTicketMentions: "true"
ReactionTickets: "true" ReactionTickets: "true"
ReactionMessage: "Réagissez avec %reaction_emoji% pour créer un ticket de support !" ReactionMessage: "Réagissez avec %reaction_emoji% pour créer un ticket de support !"
ReactionChannel: "creer-billet" ReactionChannel: "creer-billet"
ReactionPanel_Description: "true"
ReactionDescription: "Créez un ticket de support pour contacter un membre du personnel."
ReactionEmoji: "📩" ReactionEmoji: "📩"
# Custom Emojis: <:test:EMOJI_ID> # Custom Emojis: <:test:EMOJI_ID>
ReactionPanel_Thumbnail: true
ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png"
ReactionPanel_Image: true
ReactionImage: "https://wallpapercave.com/wp/wp4462546.jpg"
Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png"
Ticket_Title: "Prise en charge du serveur | %ticketusername%" Ticket_Title: "Prise en charge du serveur | %ticketusername%"
@@ -150,6 +156,23 @@ AnnouncementIcon: "https://i.imgur.com/HbkZyB7.png"
AnnouncementStarter: "Qu’aimeriez-vous annoncer?" AnnouncementStarter: "Qu’aimeriez-vous annoncer?"
# Moderation System Configuration
BanTitle: "User Banned!"
DaysBannedFor: 7
BanLogColour: "#D911B4"
KickTitle: "User Kicked!"
KickLogColour: "#D9B111"
ModThumbnail: "https://i.imgur.com/l6P3DF6.png"
ModLogChannel: "mod-logs"
PruneLogTitle: "Bulk Delete"
PruneThumbnail: "https://i.imgur.com/OAgW2vR.png"
PruneColour: "#1BA30C"
# General Command Configuration # General Command Configuration
HelpCommand: "aide" HelpCommand: "aide"
@@ -168,10 +191,13 @@ RenameTicket: "renommer"
# Staff Command Configuration # Staff Command Configuration
BotSay: "dire" BotSay: "dire"
PurgeMessage: "purge"
# Admin Command Configuration # Admin Command Configuration
AnnounceCommand: "annoncer" AnnounceCommand: "annoncer"
BanUser: "ban"
KickUser: "kick"
# Commmand Descriptions # Commmand Descriptions
@@ -185,6 +211,9 @@ RemoveUserDesc: "Supprimer un utilisateur d’un ticket de support"
AddUserDesc: "Ajouter un utilisateur à un ticket de support" AddUserDesc: "Ajouter un utilisateur à un ticket de support"
SuggestionDesc: "Créer une suggestion de serveur" SuggestionDesc: "Créer une suggestion de serveur"
BotSayDesc: "Dites quelque chose avec le bot" BotSayDesc: "Dites quelque chose avec le bot"
BanDesc: "Bannir un membre de ce serveur."
KickDesc: "Kick un membre de ce serveur."
PurgeDesc: "Purgez les messages du chat."
# Error / Warining Messages # Error / Warining Messages
+29
View File
@@ -62,9 +62,15 @@ AllowTicketMentions: "true"
ReactionTickets: "true" ReactionTickets: "true"
ReactionMessage: "Reagiere mit %reaction_emoji% um ein Ticket zu erstellen!" ReactionMessage: "Reagiere mit %reaction_emoji% um ein Ticket zu erstellen!"
ReactionPanel_Description: "true"
ReactionDescription: "Erstellen Sie ein Support-Ticket, um einen Mitarbeiter zu kontaktieren."
ReactionChannel: "create-ticket" ReactionChannel: "create-ticket"
ReactionEmoji: "📩" ReactionEmoji: "📩"
# Custom Emojis: <:test:EMOJI_ID> # Custom Emojis: <:test:EMOJI_ID>
ReactionPanel_Thumbnail: true
ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png"
ReactionPanel_Image: true
ReactionImage: "https://wallpapercave.com/wp/wp4462546.jpg"
Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png"
Ticket_Title: "Server Support | %ticketusername%" Ticket_Title: "Server Support | %ticketusername%"
@@ -149,6 +155,22 @@ AnnouncementIcon: "https://i.imgur.com/HbkZyB7.png"
AnnouncementStarter: "Was möchtest du ankündigen?" AnnouncementStarter: "Was möchtest du ankündigen?"
# Moderation System Configuration
BanTitle: "User Banned!"
DaysBannedFor: 7
BanLogColour: "#D911B4"
KickTitle: "User Kicked!"
KickLogColour: "#D9B111"
ModThumbnail: "https://i.imgur.com/l6P3DF6.png"
ModLogChannel: "mod-logs"
PruneLogTitle: "Bulk Delete"
PruneThumbnail: "https://i.imgur.com/OAgW2vR.png"
PruneColour: "#1BA30C"
# General Command Konfiguration # General Command Konfiguration
HelpCommand: "help" HelpCommand: "help"
@@ -165,11 +187,15 @@ RemoveUser: "remove"
RenameTicket: "rename" RenameTicket: "rename"
# Staff Command Konfiguration # Staff Command Konfiguration
BotSay: "say" BotSay: "say"
PurgeMessage: "purge"
# Admin Command Konfiguration # Admin Command Konfiguration
AnnounceCommand: "announce" AnnounceCommand: "announce"
BanUser: "ban"
KickUser: "kick"
# Commmand Beschreibungen (help) # Commmand Beschreibungen (help)
@@ -183,6 +209,9 @@ RemoveUserDesc: "Entferne einen Nutzer aus einem Ticket"
AddUserDesc: "Füge einen Nutzer einem Ticket hinzu" AddUserDesc: "Füge einen Nutzer einem Ticket hinzu"
SuggestionDesc: "Erstelle einen Server Vorschlag" SuggestionDesc: "Erstelle einen Server Vorschlag"
BotSayDesc: "Sage etwas mit dem Bot" BotSayDesc: "Sage etwas mit dem Bot"
BanDesc: "Verbannen Sie ein Mitglied von diesem Server."
KickDesc: "Treten Sie ein Mitglied von diesem Server."
PurgeDesc: "Nachrichten aus dem Chat löschen."
# Error / Warning Nachrichten # Error / Warning Nachrichten
+1 -2
View File
@@ -5,8 +5,7 @@
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"discord.js": "^12.5.1", "discord.js": "^12.5.1",
"javascript-obfuscator": "^2.9.4", "js-yaml": "^4.0.0"
"js-yaml": "^3.14.0"
}, },
"devDependencies": { "devDependencies": {
"node-fetch": ">=2.6.1" "node-fetch": ">=2.6.1"
+1 -4
View File
@@ -1,4 +1 @@
{ {}
"ticket": "ticket-0012",
"id":419821884431925260
}
+1 -8
View File
@@ -1,8 +1 @@
{ {}
"716992597377286145": {
"id": 65
},
"805909541979029524": {
"id": 13
}
}
+29 -5
View File
@@ -43,7 +43,7 @@ AutoRole_Role: "Member"
LockdownRole: "@everyone" LockdownRole: "@everyone"
Staff: "Staff" Staff: "Staff"
Admin: "Admin" Admin: "Administration"
# Ticket Configuration # Ticket Configuration
@@ -58,18 +58,19 @@ AllowTicketMentions: "true"
# Set to "true" to allow the ticket to mention the author and the support team. # Set to "true" to allow the ticket to mention the author and the support team.
# Set to "false" to dis-allow mentions within tickets. # Set to "false" to dis-allow mentions within tickets.
# Ticket Panel (Ticket Reaction Create) # Ticket Panel (Ticket Reaction Create)
ReactionTickets: "true" ReactionTickets: true
ReactionMessage: "React with %reaction_emoji% to create a Support Ticket!" ReactionMessage: "React with %reaction_emoji% to create a Support Ticket!"
ReactionPanel_Description: "true" ReactionPanel_Description: true
ReactionDescription: "Create a support ticket to contact a member of staff." ReactionDescription: "Create a support ticket to contact a member of staff."
ReactionChannel: "create-ticket" ReactionChannel: "create-ticket"
ReactionEmoji: "📩" ReactionEmoji: "📩"
# Custom Emojis: <:test:EMOJI_ID> # Custom Emojis: <:test:EMOJI_ID>
ReactionPanel_Thumbnail: "true" ReactionPanel_Thumbnail: true
ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png" ReactionThumbnail: "https://hotemoji.com/images/dl/5/ticket-emoji-by-twitter.png"
ReactionPanel_Image: true
ReactionImage: "https://wallpapercave.com/wp/wp4462546.jpg"
Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png" Ticket_Thumbnail: "https://images.emojiterra.com/google/android-pie/512px/1f39f.png"
Ticket_Title: "Server Support | %ticketusername%" Ticket_Title: "Server Support | %ticketusername%"
@@ -154,6 +155,23 @@ AnnouncementIcon: "https://i.imgur.com/HbkZyB7.png"
AnnouncementStarter: "What would you like to announce?" AnnouncementStarter: "What would you like to announce?"
# Moderation System Configuration
BanTitle: "User Banned!"
DaysBannedFor: 7
BanLogColour: "#D911B4"
KickTitle: "User Kicked!"
KickLogColour: "#D9B111"
ModThumbnail: "https://i.imgur.com/l6P3DF6.png"
ModLogChannel: "mod-logs"
PruneLogTitle: "Bulk Delete"
PruneThumbnail: "https://i.imgur.com/OAgW2vR.png"
PruneColour: "#1BA30C"
# General Command Configuration # General Command Configuration
HelpCommand: "help" HelpCommand: "help"
@@ -172,10 +190,13 @@ RenameTicket: "rename"
# Staff Command Configuration # Staff Command Configuration
BotSay: "say" BotSay: "say"
PurgeMessage: "purge"
# Admin Command Configuration # Admin Command Configuration
AnnounceCommand: "announce" AnnounceCommand: "announce"
BanUser: "ban"
KickUser: "kick"
# Commmand Descriptions # Commmand Descriptions
@@ -189,6 +210,9 @@ RemoveUserDesc: "Remove a user from a support ticket"
AddUserDesc: "Add a user to a support ticket" AddUserDesc: "Add a user to a support ticket"
SuggestionDesc: "Create a server suggestion" SuggestionDesc: "Create a server suggestion"
BotSayDesc: "Say something with the bot" BotSayDesc: "Say something with the bot"
BanDesc: "Ban a member from this server."
KickDesc: "Kick a member from this server."
PurgeDesc: "Purge messages from the chat."
# Error / Warining Messages # Error / Warining Messages