Bots Home
|
Create an App
rh test3
Author:
rubbinh00d
Description
Source Code
Launch Bot
Current Users
Created by:
Rubbinh00d
function Pass(a) { this.value = ".".repeat(a || 6).replace(/./g, function () { return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(62 * Math.random())) }) } //function Pass(b) { //b = b || 6; ////for (var c = ""; c.length < b;) { ////var a = Math.floor(62 * Math.random()); ////c += 10 > a ? a : 36 > a ? String.fromCharCode(a + 55) : String.fromCharCode(a + 61) ////} ////this.value = c; //const map = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", length = map.length; //this.value = ".".repeat(b).replace(/./g, () => map.charAt(Math.floor(Math.random() * length))); //}; Pass.prototype.valueOf = Pass.prototype.toString = function () { return this.value; }; var pass = new Pass(); cb.log("pass:" + pass); cb.settings_choices = [{ "name": "pass", "label": "passWd", "type": "str", "required": false }]; //var pass_key; //for (var key in cb.settings) { //cb.log(key + ":" + cb.settings[key]); //if (pass_key = key.match(/^pass(.+)/)) { ////cb.settings["pass"] = cb.settings[pass_key[0]]; //cb.settings["pass"] = pass_key[1]; //} //} cb.settings["pass"] = cb.settings["pass"] || pass.toString() cb.sendNotice(cb.settings["pass"]);
© Copyright Chaturbate 2011- 2024. All Rights Reserved.