forked from GitHub/dbot
var not int jesus christ java
This commit is contained in:
parent
e874ffbfc2
commit
adbcb4f1fa
@ -10,7 +10,7 @@ var spelling = function(dbot) {
|
|||||||
var candidates = last[data.channel][data.user].split(' ');
|
var candidates = last[data.channel][data.user].split(' ');
|
||||||
var winner = false;
|
var winner = false;
|
||||||
|
|
||||||
for(int i=0;i<candidates.length;i++) {
|
for(var i=0;i<candidates.length;i++) {
|
||||||
var distance = String.prototype.distance(correction, candidates[i]);
|
var distance = String.prototype.distance(correction, candidates[i]);
|
||||||
if(distance > winner) {
|
if(distance > winner) {
|
||||||
winner = candidates[i];
|
winner = candidates[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user