Skip to content

Commit

Permalink
Made the bot dumber
Browse files Browse the repository at this point in the history
It's too smart with a tolerance of 2 changes
  • Loading branch information
1Git2Clone committed Dec 21, 2024
1 parent d88abc0 commit df25bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/string_manipulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn levenshtein_core<'a>(msg: &'a str, commands: &'a [String]) -> Levenshtein
if cmd == lower {
return data;
}
if strsim::levenshtein(&cmd, &lower) <= 2 {
if strsim::levenshtein(&cmd, &lower) <= 1 {
tmp.push(cmd);
}
}
Expand Down

0 comments on commit df25bb7

Please sign in to comment.