.adhs command

This commit is contained in:
GottZ 2018-04-25 13:36:11 +02:00
parent 76e0646ddf
commit 9e756a5978
No known key found for this signature in database
GPG Key ID: 68207F1F516E4FD2

View File

@ -56,7 +56,7 @@ p.run = function (o) {
if (level === null || level === undefined) level = -1;
switch(o.cmd) {
case ".adhs":
let s = o.args.toLowerCase();
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;