Upload files

This commit is contained in:
Eartharoid
2019-05-03 22:09:48 +01:00
parent 341a92eaa6
commit 85afdc3d19
5 changed files with 260 additions and 0 deletions

22
commands/help.js Normal file
View File

@@ -0,0 +1,22 @@
module.exports = {
name: 'help',
description: 'Displays help menu',
usage: 'help [command]',
execute(message, args, config, version) {
// command starts here
message.delete();
if(config.useEmbeds) {
const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
.setColor("#2ECC71")
.setDescription(":white_check_mark: **Started succesfully**")
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot\nDiscordTickets by Eartharoid`);
message.channel.send({embed})
} else {
message.channel.send(`**Prefix =** \`${config.prefix}\`\n**Bot Version =** \`${version}\``)
}
// command ends here
},
};

27
commands/new.js Normal file
View File

@@ -0,0 +1,27 @@
module.exports = {
name: 'new',
description: 'Create a new ticket',
usage: 'new [brief description]',
execute(message, args, config, version) {
// command starts here
message.delete();
const ticketChannel = "channel";
// log
if(config.useEmbeds) {
const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
.setTitle("New Ticket")
.setColour
.addField("Username", message.author.tag, true)
.addField("Channel", ticketChannel, true)
.setFooter(`${client.guilds.get(config.guildID).name} / Ticket Bot\nDiscordTickets by Eartharoid`);
client.channels.get(config.logChannel).send({embed})
} else {
client.channels.get(config.logChannel).send(`New ticket created by **${message.author.tag} (${message.author.id})**`);
}
// command ends here
},
};