From 4e32ff8611c1738c327d3979749a2945bb62a9bf Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 26 Feb 2019 15:10:34 +0100 Subject: [PATCH] word.toLowerCase() cause issue?? --- commands/owner/twitter/censor.js | 5 ++--- commands/owner/twitter/uncensor.js | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/commands/owner/twitter/censor.js b/commands/owner/twitter/censor.js index c66a79a..aa0905c 100644 --- a/commands/owner/twitter/censor.js +++ b/commands/owner/twitter/censor.js @@ -10,7 +10,8 @@ class censorCommand extends Command { args: [ { id: 'word', - type: 'string' + type: 'string', + match: 'rest' } ], description: { @@ -24,8 +25,6 @@ class censorCommand extends Command { async exec(message, args) { let word = args.word; - word = word.toLowerCase(); - let words = []; let json = JSON.stringify(words); diff --git a/commands/owner/twitter/uncensor.js b/commands/owner/twitter/uncensor.js index c17ea06..9485975 100644 --- a/commands/owner/twitter/uncensor.js +++ b/commands/owner/twitter/uncensor.js @@ -10,7 +10,8 @@ class uncensorCommand extends Command { args: [ { id: 'word', - type: 'string' + type: 'string', + match: 'rest' } ], description: { @@ -23,9 +24,7 @@ class uncensorCommand extends Command { async exec(message, args) { let word = args.word; - - word = word.toLowerCase(); - + let words = []; let json = JSON.stringify(words);