From 635cfb0391a780f4fc94c0fe53f0adfaf7e5ea57 Mon Sep 17 00:00:00 2001 From: ry Date: Mon, 23 Dec 2019 10:47:02 +0100 Subject: [PATCH] dig command for myself uwu --- DiscordModules/General/dig.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 DiscordModules/General/dig.js diff --git a/DiscordModules/General/dig.js b/DiscordModules/General/dig.js deleted file mode 100644 index 1c45055..0000000 --- a/DiscordModules/General/dig.js +++ /dev/null @@ -1,33 +0,0 @@ -const Command = require('../../src/structures/Command'); -const exec = require('shell-exec'); -const dig = require('node-dig-dns'); -let DomainReg = new RegExp(`(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]`); -module.exports = class Dig extends Command { - constructor() { - super({ - name: 'dig', - description: 'dig website dns information stuff', - aliases: [], - module: 'General', - cooldown: 10, - guildOnly: false, - developerOnly: false, - nsfw: false - }); - } - - async command(ctx) { - console.log(ctx.args); - console.log(ctx.args[0].match(DomainReg)); - - if (ctx.args[0].match(DomainReg)) { - dig([ 'shyzu.link', 'ns' ]) - .then((result) => { - console.log(result); - }) - .catch((err) => { - console.log('Error:', err); - }); - } - } -};