From 22638f433e0d5bc995644b0e3f50686ada85751f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Fri, 21 Jun 2019 03:35:21 +0200 Subject: [PATCH] removed whois because it can stuck the bot --- commands/utility/whois.js | 31 ------------------------------- package.json | 1 - 2 files changed, 32 deletions(-) delete mode 100644 commands/utility/whois.js diff --git a/commands/utility/whois.js b/commands/utility/whois.js deleted file mode 100644 index 0a2193f0..00000000 --- a/commands/utility/whois.js +++ /dev/null @@ -1,31 +0,0 @@ -const { Command } = require('discord-akairo'); -const whois = require('whois'); - -class whoisCommand extends Command { - constructor() { - super('whois', { - aliases: ['whois'], - category: 'utility', - args: [ - { - id: 'domain', - type: 'string', - match: 'rest', - } - ], - description: { - content: 'Show\'s whois data about website. (ATTENTION, CAN BE SPAMMY)', - usage: '[website]', - examples: ['namejeff.xyz'] - } - }); - } - - async exec(message, args) { - whois.lookup(args.domain, function(err, data) { - return message.channel.send(data, {split: true, code: true }); - }); - } -} - -module.exports = whoisCommand; \ No newline at end of file diff --git a/package.json b/package.json index 0c8b99b3..e5d25601 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "reload-json": "^0.3.1", "superagent": "^4.1.0", "twitter-lite": "^0.9.4", - "whois": "^2.10.0", "youtube-dl": "^1.13.1", "ytdl-core": "^0.29.1" },