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 = {
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) {
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)
.setDescription(":white_check_mark: **Started succesfully**")
.addField("...", `...`, true)
.addField("...", `...`, true)
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
message.channel.send({embed})
} else {

View File

@ -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`);

View File

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

View File

@ -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) => {