From 74fd489354130d01281a520d38befa26808f1e98 Mon Sep 17 00:00:00 2001 From: Eartharoid Date: Fri, 3 May 2019 23:42:29 +0100 Subject: [PATCH] YESSSSSSSSS --- commands/help.js | 14 +++++++++----- commands/new.js | 3 +-- example-config.json | 2 +- index.js | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/commands/help.js b/commands/help.js index 2b4fa57..b51b537 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,15 +1,19 @@ +const Discord = require('discord.js'); module.exports = { name: 'help', description: 'Displays help menu', 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 message.delete(); - if(config.useEmbeds) { + if(config.useEmbeds) { const embed = new Discord.RichEmbed() - .setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL) - .setColor(config.colour) - .setDescription(":white_check_mark: **Started succesfully**") + .setAuthor(`${client.user.username} / Commands`, client.user.avatarURL) + .setColor(config.colour) + .addField("...", `...`, true) + .addField("...", `...`, true) .setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`); message.channel.send({embed}) } else { diff --git a/commands/new.js b/commands/new.js index 6586244..f569246 100644 --- a/commands/new.js +++ b/commands/new.js @@ -2,7 +2,7 @@ module.exports = { name: 'new', description: 'Create a new ticket', usage: 'new [brief description]', - execute(client, message, args, config, Discord) { + execute(message, args, config) { // command starts here message.delete(); const ticketChannel = "channel"; @@ -12,7 +12,6 @@ module.exports = { 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} : DiscordTickets by Eartharoid`); diff --git a/example-config.json b/example-config.json index a35fb72..2d7589e 100644 --- a/example-config.json +++ b/example-config.json @@ -6,7 +6,7 @@ "supportRole": "id", "ticketsCat": "id", "logChannel": "id", - "colour": "#009999", + "colour": "009999", "playing": "with tickets (!help)", "useEmbeds": true, "logDMs": true diff --git a/index.js b/index.js index 464699a..294eb95 100644 --- a/index.js +++ b/index.js @@ -165,7 +165,7 @@ client.on('message', message => { }); 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}`)); }); process.on('exit', (code) => {