mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 07:43:08 +02:00
YESSSSSSSSS
This commit is contained in:
parent
ca4ddb424c
commit
74fd489354
@ -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 {
|
||||
|
@ -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`);
|
||||
|
@ -6,7 +6,7 @@
|
||||
"supportRole": "id",
|
||||
"ticketsCat": "id",
|
||||
"logChannel": "id",
|
||||
"colour": "#009999",
|
||||
"colour": "009999",
|
||||
"playing": "with tickets (!help)",
|
||||
"useEmbeds": true,
|
||||
"logDMs": true
|
||||
|
2
index.js
2
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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user