From da2336036c5b36187da8406ddf23402e11fc2bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Mon, 8 Jul 2019 23:05:29 +0200 Subject: [PATCH] remove thing related to tag and autoresponse --- commands/utility/server.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/commands/utility/server.js b/commands/utility/server.js index 0f212154..74be2200 100644 --- a/commands/utility/server.js +++ b/commands/utility/server.js @@ -1,6 +1,5 @@ const { Command } = require('discord-akairo'); const { MessageEmbed } = require('discord.js'); -const reload = require('auto-reload'); class ServerCommand extends Command { constructor() { @@ -17,22 +16,6 @@ class ServerCommand extends Command { } async exec(message) { - const autoresponse = reload('../../json/autoresponse.json'); - let autoresponseStatus; - if (autoresponse[message.channel.id] == undefined || autoresponse[message.channel.id] == 'disable') - autoresponseStatus = 'disabled'; - else if (autoresponse[message.channel.id] == 'enable') - autoresponseStatus = 'enabled'; - - let count; - - try { - const customresponse = require(`../../tag/${message.guild.id}.json`); - count = Object.keys(customresponse).length; - } catch (e) { - count = 0; - } - const addEmbed = new MessageEmbed() .setColor('#0099ff') .setTitle(message.guild.name) @@ -44,8 +27,6 @@ class ServerCommand extends Command { .addBlankField() .addField('Date when guild created', message.guild.createdAt, true) .addField('Owner', message.guild.owner, true) - .addField('Numbers of tag', count, true) - .addField('Autoresponse in this channel', autoresponseStatus, true) .setTimestamp();