From 6080d91bcd37cb97dd4b7b02f75b2328ecbd6069 Mon Sep 17 00:00:00 2001
From: Loic Bersier <loic.bersier1@gmail.com>
Date: Thu, 6 Dec 2018 01:30:35 +0100
Subject: [PATCH] updated

---
 commands/admin/{customresponse => tag} | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
 rename commands/admin/{customresponse => tag} (85%)

diff --git a/commands/admin/customresponse b/commands/admin/tag
similarity index 85%
rename from commands/admin/customresponse
rename to commands/admin/tag
index 7caab21..692badf 100644
--- a/commands/admin/customresponse
+++ b/commands/admin/tag
@@ -4,11 +4,11 @@ const fs = require('fs');
 module.exports = class CustomResponseCommand extends Command {
     constructor(client) {
         super(client, {
-            name: 'customresponse',
+            name: 'tag',
             group: 'admin',
-            memberName: 'customresponse',
+            memberName: 'tag',
             userPermissions: ['ADMINISTRATOR'],
-            description: `Can disable autoresponse in the channel (you can add "ALL" like this "haha enable/disable all" to enable/disable in every channel (EXPERIMENTAL))`,
+            description: `Custom auto response`,
             args: [
                 {
                     key: 'trigger',
@@ -30,10 +30,14 @@ module.exports = class CustomResponseCommand extends Command {
 
             trigger = trigger.toLowerCase();
             response = response.toLowerCase()
-            trigger = trigger.replace('--', ' ')
+            do {
+                trigger = trigger.replace('--', ' ')
+            } while (trigger.includes('--'))
+            
             let customresponse = {}
             let json = JSON.stringify(customresponse)
 
+            
             fs.readFile('./json/customresponse.json', 'utf8', function readFileCallback(err, data){
                 if (err){
                     console.log(err);