.adhs command.. for real this time..
This commit is contained in:
parent
9e756a5978
commit
9adf667da6
|
@ -59,7 +59,7 @@ p.run = function (o) {
|
||||||
let s = [...o.args.toLowerCase()];
|
let s = [...o.args.toLowerCase()];
|
||||||
s = s.filter(c => /[a-z]/.test(c));
|
s = s.filter(c => /[a-z]/.test(c));
|
||||||
s = s.map((c, i) => {
|
s = s.map((c, i) => {
|
||||||
return chars[((c.charCodeAt() -97) * (i+1) * 107) %26] /26;
|
return alphanoise[((c.charCodeAt() -97) * (i+1) * 107) %26] /26;
|
||||||
}).reduce((a,b)=>a+b) %1;
|
}).reduce((a,b)=>a+b) %1;
|
||||||
client.say(o.to, o.args + " has " + (s * 100).toFixed(2) + "% adhs");
|
client.say(o.to, o.args + " has " + (s * 100).toFixed(2) + "% adhs");
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user