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