diff --git a/DiscordModules/General/suggest.js b/DiscordModules/General/suggest.js index d75f1bc..1ed029a 100644 --- a/DiscordModules/General/suggest.js +++ b/DiscordModules/General/suggest.js @@ -16,19 +16,28 @@ module.exports = class Suggest extends Command { async command(ctx) { /* throw new Error('Testing'); */ - let abuse = new D.MessageEmbed() + let Misuse = new D.MessageEmbed() .setTitle('Misuse of Command') .setDescription( - `Please make sure to make your Suggestion as Detailed as possible.\n\nAbuse of this command will lead to complete denial of command usage.` + `There was + Please make sure to make your Suggestion as Detailed as possible.\n\nAbuse of this command will lead to complete denial of command usage.` ); if (ctx.args.length < 1) { return ctx.send(abuse); } + let Suggestion = ctx.args.join(' ').split('|') + if (Suggestion.length < 2) return ctx.send(`Only the Title doesn't help, please add Text after the \`|\` to send me your Suggestion`) + if (Suggestion[1] === '') return ctx.send(`Only the Title doesn't help, please add Text after the \`|\` to send me your Suggestion`) + + + ctx.trello .addCard( - ctx.args.join(' '), + Suggestion[0], ` + ${Suggestion[1]} + Author: ${ctx.author.tag} (${ctx.author.id}) Server: ${ctx.guild.name} (${ctx.guild.id})`, ctx.config.trello.boards.suggestions