YESSSSSSSSS

This commit is contained in:
Eartharoid 2019-05-03 23:42:29 +01:00
parent ca4ddb424c
commit 74fd489354
4 changed files with 12 additions and 9 deletions

View File

@ -1,15 +1,19 @@
const Discord = require('discord.js');
module.exports = { module.exports = {
name: 'help', name: 'help',
description: 'Displays help menu', description: 'Displays help menu',
usage: 'help [command]', usage: 'help [command]',
execute(message, args, config, version, client, Discord) { aliases: ['command', 'commands'],
execute(message, args, config, version) {
const client = message.client;
// command starts here // command starts here
message.delete(); message.delete();
if(config.useEmbeds) { if(config.useEmbeds) {
const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL) .setAuthor(`${client.user.username} / Commands`, client.user.avatarURL)
.setColor(config.colour) .setColor(config.colour)
.setDescription(":white_check_mark: **Started succesfully**") .addField("...", `...`, true)
.addField("...", `...`, true)
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`); .setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
message.channel.send({embed}) message.channel.send({embed})
} else { } else {

View File

@ -2,7 +2,7 @@ module.exports = {
name: 'new', name: 'new',
description: 'Create a new ticket', description: 'Create a new ticket',
usage: 'new [brief description]', usage: 'new [brief description]',
execute(client, message, args, config, Discord) { execute(message, args, config) {
// command starts here // command starts here
message.delete(); message.delete();
const ticketChannel = "channel"; const ticketChannel = "channel";
@ -12,7 +12,6 @@ module.exports = {
const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL) .setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
.setTitle("New Ticket") .setTitle("New Ticket")
.setColour
.addField("Username", message.author.tag, true) .addField("Username", message.author.tag, true)
.addField("Channel", ticketChannel, true) .addField("Channel", ticketChannel, true)
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`); .setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);

View File

@ -6,7 +6,7 @@
"supportRole": "id", "supportRole": "id",
"ticketsCat": "id", "ticketsCat": "id",
"logChannel": "id", "logChannel": "id",
"colour": "#009999", "colour": "009999",
"playing": "with tickets (!help)", "playing": "with tickets (!help)",
"useEmbeds": true, "useEmbeds": true,
"logDMs": true "logDMs": true

View File

@ -165,7 +165,7 @@ client.on('message', message => {
}); });
process.on('unhandledRejection', error => { process.on('unhandledRejection', error => {
console.warn(leeks.colors.yellow(`[WARN] An error was not caught`)) console.log(leeks.colors.yellow(leeks.styles.bold(`[WARN] An error was not caught`)));
console.error(leeks.colors.red(`[ERROR] Uncaught Promise Error: \n${error.stack}`)); console.error(leeks.colors.red(`[ERROR] Uncaught Promise Error: \n${error.stack}`));
}); });
process.on('exit', (code) => { process.on('exit', (code) => {