From 568707bb17f5afc1cc4014a02a2cb8e0e61026ea Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 29 Apr 2018 12:01:05 +0000 Subject: [PATCH] Remove the last owner-specific command to Fidget --- README.md | 3 +-- commands/text-edit/webhook.js | 37 ----------------------------------- package.json | 2 +- 3 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 commands/text-edit/webhook.js diff --git a/README.md b/README.md index ccb05e87..e46ce92c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can invite the bot to your server using Be sure to also join the [home server](https://discord.gg/sbMe32W) for information and support. -## Commands (308) +## Commands (307) ### Utility: * **prefix**: Shows or sets the command prefix. @@ -314,7 +314,6 @@ information and support. * **translate**: Translates text to a specific language. * **upside-down**: Flips text upside-down. * **url-encode**: Encodes text to URL-friendly characters. -* **webhook**: Posts a message to the webhook defined in your `process.env`. * **yoda**: Converts text to Yoda speak. * **zalgo**: Converts text to zalgo. * **🅱**: Replaces b with 🅱. diff --git a/commands/text-edit/webhook.js b/commands/text-edit/webhook.js deleted file mode 100644 index 47a2a531..00000000 --- a/commands/text-edit/webhook.js +++ /dev/null @@ -1,37 +0,0 @@ -const { Command } = require('discord.js-commando'); -const snekfetch = require('snekfetch'); -const { WEBHOOK_ID, WEBHOOK_TOKEN } = process.env; - -module.exports = class WebhookCommand extends Command { - constructor(client) { - super(client, { - name: 'webhook', - aliases: ['rin', 'rin-say'], - group: 'text-edit', - memberName: 'webhook', - description: 'Posts a message to the webhook defined in your `process.env`.', - details: 'Only the bot owner(s) may use this command.', - ownerOnly: true, - clientPermissions: ['MANAGE_MESSAGES'], - args: [ - { - key: 'content', - prompt: 'What text would you like the webhook to say?', - type: 'string' - } - ] - }); - } - - async run(msg, { content }) { - try { - if (msg.channel.type === 'text' && msg.deletable) await msg.delete(); - await snekfetch - .post(`https://discordapp.com/api/webhooks/${WEBHOOK_ID}/${WEBHOOK_TOKEN}`) - .send({ content }); - return null; - } catch (err) { - return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); - } - } -}; diff --git a/package.json b/package.json index c186ea72..c91b3470 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "75.0.1", + "version": "75.0.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {