leven -> wuzzy

This commit is contained in:
Dragon Fire
2021-05-16 13:18:30 -04:00
parent ffc1528f09
commit c40b2a1725
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const leven = require('leven');
const wuzzy = require('wuzzy');
module.exports = class LevenshteinCommand extends Command {
constructor(client) {
@@ -25,7 +25,7 @@ module.exports = class LevenshteinCommand extends Command {
}
run(msg, { text1, text2 }) {
const distance = leven(text1, text2);
const distance = wuzzy.levenshtein(text1, text2);
return msg.reply(distance);
}
};
-1
View File
@@ -64,7 +64,6 @@
"jszip": "^3.6.0",
"kuroshiro": "^1.1.2",
"kuroshiro-analyzer-kuromoji": "^1.1.0",
"leven": "^3.1.0",
"mathjs": "^9.4.0",
"moment": "^2.29.1",
"moment-duration-format": "^2.3.2",