fix spacing

updated
This commit is contained in:
Eartharoid 2019-09-09 18:16:50 +01:00
parent 5dffa0e3a5
commit d4522cd729
3 changed files with 7 additions and 8 deletions

View File

@ -28,12 +28,12 @@ module.exports = {
if (!args.length) { if (!args.length) {
data.push('__**Commands**__'); data.push('__**Commands**__');
data.push(commands.map(command => `**${config.prefix}${command.name}** : \`${command.description}\``).join('\n')); data.push(commands.map(command => `**${config.prefix}${command.name}** : \`${command.description}\``).join('\n'));
data.push(`\nType\`${config.prefix}help [command]\` for more information about a specific command.`); data.push(`\nType \`${config.prefix}help [command]\` for more information about a specific command.`);
const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
.setTitle("Commands") .setTitle("Commands")
.setColor(config.colour) .setColor(config.colour)
.setDescription(`\nType\`${config.prefix}help [command]\` for more information about a specific command.`) .setDescription(`\nType \`${config.prefix}help [command]\` for more information about a specific command.`)
// .addField("...", `...`, true) // .addField("...", `...`, true)
// .addField("...", `...`, true) // .addField("...", `...`, true)
.setFooter(`DiscordTickets by Eartharoid`); .setFooter(`DiscordTickets by Eartharoid`);
@ -82,7 +82,7 @@ module.exports = {
if (!args.length) { if (!args.length) {
data.push('__**Commands**__'); data.push('__**Commands**__');
data.push(commands.map(command => `**${config.prefix}${command.name}** : \`${command.description}\``).join('\n')); data.push(commands.map(command => `**${config.prefix}${command.name}** : \`${command.description}\``).join('\n'));
data.push(`\nType\`${config.prefix}help [command]\` for more information about a specific command.`); data.push(`\nType \`${config.prefix}help [command]\` for more information about a specific command.`);
return message.author.send(data, { split: true }) return message.author.send(data, { split: true })
.then(() => { .then(() => {

View File

@ -29,8 +29,8 @@ module.exports = {
if(message.guild.channels.some(channel => chan.includes(channel.name))) { if(message.guild.channels.some(channel => chan.includes(channel.name))) {
if(config.useEmbeds){ if(config.useEmbeds){
const err1 = new Discord.RichEmbed() const err1 = new Discord.RichEmbed()
.setColor("#E74C3C") .setColor("#E74C3C")
.setDescription(`:x: You already have an open ticket.`) .setDescription(`:x: You already have an open ticket.`)
return message.channel.send(err1) return message.channel.send(err1)
} else { } else {
message.channel.send(`:x: You already have an open ticket.`) message.channel.send(`:x: You already have an open ticket.`)

View File

@ -1,12 +1,11 @@
{ {
"name": "DiscordTickets", "name": "DiscordTickets",
"version": "1.1.5", "version": "1.1.5",
"description": "A Discord ticket/support - an open-source & self-host alternative to TicketManager (name tbd)", "description": "A Discord ticket/support - an open-source & self-hosted bot",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"discord.js": "^11.4.2", "discord.js": "^11.4.2",
"leeks.js": "^0.0.1", "leekslazylogger": "^1.1.3"
"leekslazylogger": "0.0.4"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {