From 11ca793181cda79f421a9cd57e58c40baa4617aa Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 22 Apr 2018 02:55:50 +0000 Subject: [PATCH] Fix lint --- README.md | 2 +- commands/tags/edit.js | 2 +- commands/tags/info.js | 2 +- commands/tags/remove.js | 4 ++-- commands/tags/source.js | 2 +- commands/tags/tag.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 227e3350..d4c93908 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ served over 10,000 servers with a uniquely devoted fanbase. * **tag-add**: Adds a tag for this server. * **tag-edit**: Edits a tag in this server. * **tag-info**: Responds with detailed information on a tag in this server. -* **tag-remove**: Removes a tag for this server. +* **tag-remove**: Removes a tag from this server. * **tag-source**: Responds with the base markdown of a tag in this server. ### Role Management: diff --git a/commands/tags/edit.js b/commands/tags/edit.js index c33c36e3..b7dae808 100644 --- a/commands/tags/edit.js +++ b/commands/tags/edit.js @@ -30,7 +30,7 @@ module.exports = class TagEditCommand extends Command { async run(msg, { id, text }) { const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } }); - if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`); + if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`); if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) { return msg.reply('You can only edit your own tags.'); } diff --git a/commands/tags/info.js b/commands/tags/info.js index 96af9146..bc7d8bd3 100644 --- a/commands/tags/info.js +++ b/commands/tags/info.js @@ -25,7 +25,7 @@ module.exports = class TagInfoCommand extends Command { async run(msg, { id }) { const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } }); - if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`); + if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`); let author; try { const authorUser = await this.client.users.fetch(tag.userID); diff --git a/commands/tags/remove.js b/commands/tags/remove.js index 3d084576..7fd21ee6 100644 --- a/commands/tags/remove.js +++ b/commands/tags/remove.js @@ -8,7 +8,7 @@ module.exports = class TagRemoveCommand extends Command { aliases: ['tag-delete', 'remove-tag', 'delete-tag'], group: 'tags', memberName: 'remove', - description: 'Removes a tag for this server.', + description: 'Removes a tag from this server.', guildOnly: true, args: [ { @@ -24,7 +24,7 @@ module.exports = class TagRemoveCommand extends Command { async run(msg, { id }) { const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } }); - if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`); + if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`); if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) { return msg.reply('You can only delete your own tags.'); } diff --git a/commands/tags/source.js b/commands/tags/source.js index db29fc6e..299b0280 100644 --- a/commands/tags/source.js +++ b/commands/tags/source.js @@ -23,7 +23,7 @@ module.exports = class TagSourceCommand extends Command { async run(msg, { id }) { const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } }); - if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`); + if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`); return msg.code('md', tag.text); } }; diff --git a/commands/tags/tag.js b/commands/tags/tag.js index d00abee1..3497fa5a 100644 --- a/commands/tags/tag.js +++ b/commands/tags/tag.js @@ -23,7 +23,7 @@ module.exports = class TagCommand extends Command { async run(msg, { id }) { const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } }); - if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`); + if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`); return msg.say(tag.text); } };