mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
leven -> wuzzy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user