forked from Supositware/Haha-Yes
word.toLowerCase() cause issue??
This commit is contained in:
parent
656bfc5ce1
commit
4e32ff8611
2 changed files with 5 additions and 7 deletions
|
@ -10,7 +10,8 @@ class censorCommand extends Command {
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
id: 'word',
|
id: 'word',
|
||||||
type: 'string'
|
type: 'string',
|
||||||
|
match: 'rest'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
description: {
|
description: {
|
||||||
|
@ -24,8 +25,6 @@ class censorCommand extends Command {
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
let word = args.word;
|
let word = args.word;
|
||||||
|
|
||||||
word = word.toLowerCase();
|
|
||||||
|
|
||||||
let words = [];
|
let words = [];
|
||||||
let json = JSON.stringify(words);
|
let json = JSON.stringify(words);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ class uncensorCommand extends Command {
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
id: 'word',
|
id: 'word',
|
||||||
type: 'string'
|
type: 'string',
|
||||||
|
match: 'rest'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
description: {
|
description: {
|
||||||
|
@ -23,9 +24,7 @@ class uncensorCommand extends Command {
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
let word = args.word;
|
let word = args.word;
|
||||||
|
|
||||||
word = word.toLowerCase();
|
|
||||||
|
|
||||||
let words = [];
|
let words = [];
|
||||||
let json = JSON.stringify(words);
|
let json = JSON.stringify(words);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue