word.toLowerCase() cause issue??

merge-requests/3/head
Supositware 5 years ago
parent 656bfc5ce1
commit 4e32ff8611

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

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

Loading…
Cancel
Save