From 9adf667da698954667f106eb56bd1df46cf73816 Mon Sep 17 00:00:00 2001 From: GottZ Date: Wed, 25 Apr 2018 13:37:13 +0200 Subject: [PATCH] .adhs command.. for real this time.. --- chatCommands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatCommands.js b/chatCommands.js index 3dee6b4..f6208d5 100644 --- a/chatCommands.js +++ b/chatCommands.js @@ -59,7 +59,7 @@ p.run = function (o) { let s = [...o.args.toLowerCase()]; s = s.filter(c => /[a-z]/.test(c)); 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; client.say(o.to, o.args + " has " + (s * 100).toFixed(2) + "% adhs"); return true;