removed whois because it can stuck the bot

merge-requests/3/head
Loïc Bersier 5 years ago
parent fb780ccee1
commit 22638f433e

@ -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;

@ -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"
},

Loading…
Cancel
Save