Bots Home
|
Create an App
CaptchaTest TS
Author:
thmo_
Description
Source Code
Launch Bot
Current Users
Created by:
Thmo_
!function(e){var t={};function s(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(n,i,function(t){return e[t]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)}([function(e,t,s){"use strict";function n(e){return"Yes"===e}function i(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}s.r(t);var a=function(){function e(t,s,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modsAllowed=t,this.dev=s,this.helpers=n}var t,s,n;return t=e,(s=[{key:"hasClaim",value:function(e,t){return this.getClaims(e).includes(t)}},{key:"getClaims",value:function(e){var t=[];return e.user===this.dev&&t.push("IS_DEV"),e.user===cb.room_slug&&t.push("IS_BROADCASTER"),this.helpers.includes(e.user)&&t.push("IS_HELPER"),e.is_mod&&t.push("IS_MOD"),e.in_fanclub&&t.push("IN_FANCLUB"),e.has_tokens&&(t.push("IS_LIGHTBLUE"),t.push("HAS_TOKENS"),t.push("HAS_TOKEN")),e.tipped_recently&&(t.push("IS_DARKBLUE"),t.push("HAS_TIPPED_RECENTLY")),e.tipped_alot_recently&&(t.push("IS_LIGHTPURPLE"),t.push("HAS_TIPPED_ALOT_RECENTLY")),e.tipped_tons_recently&&(t.push("IS_DARKPURPLE"),t.push("HAS_TIPPED_TONS_RECENTLY")),t}},{key:"hasPermission",value:function(e,t){var s=this;if(this.hasClaim(e,"IS_DEV"))return!0;var n=function(t){return!!s.getClaims(e).some(function(e){return t.includes(e)})};switch(t){case"MOD":return this.modsAllowed?n(["IS_BROADCASTER","IS_MOD"]):n(["IS_BROADCASTER"]);case"SUPERUSER":return this.modsAllowed?n(["IS_BROADCASTER","IS_MOD","IS_HELPER"]):n(["IS_BROADCASTER"]);case"USER":return n(["IS_BROADCASTER","IS_MOD","IS_HELPER","IN_FANCLUB","HAS_TOKEN"]);default:return!1}}}])&&i(t.prototype,s),n&&i(t,n),e}();function o(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r,c,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,s,n;return t=e,n=[{key:"generateCaptcha",value:function(){var e,t;e=Math.round(8*Math.random())+1,t=Math.round(8*Math.random())+1;return["".concat(e," plus ").concat(t," equals ??"),function(s){return parseInt(s,10)===e+t}]}}],(s=null)&&o(t.prototype,s),n&&o(t,n),e}();function l(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}!function(e){e.LightGrey="#d6d6b8",e.Orange="#f4a369",e.Blue="#9cb9ff",e.Yellow="#f1d567",e.Green="#9edf7e",e.IcyBlue="#8dd4d4",e.LightRed="#ef9c98",e.LightPurple="#d9a6ff",e.MudOrange="#e1cc91",e.BluishPurple="#b5a8db",e.Pink="#fa7ba1",e.GrassGreen="#d3df66",e.RockYellow="#d3bd5c",e.GhostyPurple="#b29adb",e.Purple="#ac8bfc",e.SteelGrey="#B8B8D0",e.Darkness="#705848",e.FairyPink="#EE99AC"}(r||(r={})),function(e){e.AliceBlue="#F0F8FF",e.AntiqueWhite="#FAEBD7",e.Aqua="#00FFFF",e.Aquamarine="#7FFFD4",e.Azure="#F0FFFF",e.Beige="#F5F5DC",e.Bisque="#FFE4C4",e.Black="#000000",e.BlanchedAlmond="#FFEBCD",e.Blue="#0000FF",e.BlueViolet="#8A2BE2",e.Brown="#A52A2A",e.BurlyWood="#DEB887",e.CadetBlue="#5F9EA0",e.Chartreuse="#7FFF00",e.Chocolate="#D2691E",e.Coral="#FF7F50",e.CornflowerBlue="#6495ED",e.Cornsilk="#FFF8DC",e.Crimson="#DC143C",e.Cyan="#00FFFF",e.DarkBlue="#00008B",e.DarkCyan="#008B8B",e.DarkGoldenRod="#B8860B",e.DarkGrey="#A9A9A9",e.DarkGreen="#006400",e.DarkKhaki="#BDB76B",e.DarkMagenta="#8B008B",e.DarkOliveGreen="#556B2F",e.DarkOrange="#FF8C00",e.DarkOrchid="#9932CC",e.DarkRed="#8B0000",e.DarkSalmon="#E9967A",e.DarkSeaGreen="#8FBC8F",e.DarkSlateBlue="#483D8B",e.DarkSlateGrey="#2F4F4F",e.DarkTurquoise="#00CED1",e.DarkViolet="#9400D3",e.DeepPink="#FF1493",e.DeepSkyBlue="#00BFFF",e.DimGrey="#696969",e.DodgerBlue="#1E90FF",e.FireBrick="#B22222",e.FloralWhite="#FFFAF0",e.ForestGreen="#228B22",e.Fuschia="#FF00FF",e.Gainsboro="#DCDCDC",e.GhostWhite="#F8F8FF",e.Gold="#FFD700",e.GoldenRod="#DAA520",e.Grey="#808080",e.Green="#008000",e.GreenYellow="#ADFF2F",e.HoneyDew="#F0FFF0",e.HotPink="#FF69B4",e.IndianRed="#CD5C5C",e.Indigo="#4B0082",e.Ivory="#FFFFF0",e.Khaki="#F0E68C",e.Lavender="#E6E6FA",e.LavenderBlush="#FFF0F5",e.LawnGreen="#7CFC00",e.LemonChiffon="#FFFACD",e.LightBlue="#ADD8E6",e.LightCoral="#F08080",e.LightCyan="#E0FFFF",e.LightGoldenRodYellow="#FAFAD2",e.LightGrey="#D3D3D3",e.LightGreen="#90EE90",e.LightPink="#FFB6C1",e.LightSalmon="#FFA07A",e.LightSeaGreen="#20B2AA",e.LightSkyBlue="#87CEFA",e.LightSlateGrey="#778899",e.LightSteelBlue="#B0C4DE",e.LightYellow="#FFFFE0",e.Lime="#00FF00",e.LimeGreen="#32CD32",e.Linen="#FAF0E6",e.Magenta="#FF00FF",e.Maroon="#800000",e.MediumAquaMarine="#66CDAA",e.MediumBlue="#0000CD",e.MediumOrchid="#BA55D3",e.MediumPurple="#9370DB",e.MediumSeaGreen="#3CB371",e.MediumSlateBlue="#7B68EE",e.MediumSpringGreen="#00FA9A",e.MediumTurquoise="#48D1CC",e.MediumVioletRed="#C71585",e.MidnightBlue="#191970",e.MintCream="#F5FFFA",e.MistyRose="#FFE4E1",e.Moccasin="#FFE4B5",e.NavajoWhite="#FFDEAD",e.Navy="#000080",e.OldLace="#FDF5E6",e.Olive="#808000",e.OliveDrab="#6B8E23",e.Orange="#FFA500",e.OrangeRed="#FF4500",e.Orchid="#DA70D6",e.PaleGoldenRod="#EEE8AA",e.PaleGreen="#98FB98",e.PaleTurquoise="#AFEEEE",e.PaleVioletRed="#DB7093",e.PapayaWhip="#FFEFD5",e.PeachPuff="#FFDAB9",e.Peru="#CD853F",e.Pink="#FFC0CB",e.Plum="#DDA0DD",e.PowderBlue="#B0E0E6",e.Purple="#800080",e.Red="#FF0000",e.RosyBrown="#BC8F8F",e.RoyalBlue="#4169E1",e.SaddleBrown="#8B4513",e.Salmon="#FA8072",e.SandyBrown="#F4A460",e.SeaGreen="#2E8B57",e.SeaShell="#FFF5EE",e.Sienna="#A0522D",e.Silver="#C0C0C0",e.SkyBlue="#87CEEB",e.SlateBlue="#6A5ACD",e.SlateGrey="#708090",e.Snow="#FFFAFA",e.SpringGreen="#00FF7F",e.SteelBlue="#4682B4",e.Tan="#D2B48C",e.Teal="#008080",e.Thistle="#D8BFD8",e.Tomato="#FF6347",e.Turquoise="#40E0D0",e.Violet="#EE82EE",e.Wheat="#F5DEB3",e.White="#FFFFFF",e.WhiteSmoke="#F5F5F5",e.Yellow="#FFFF00",e.YellowGreen="#9ACD32"}(c||(c={}));var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,s,n;return t=e,n=[{key:"sendMessageToUser",value:function(e,t,s,n){this.sendMessage(e,t,s,n)}},{key:"sendMessageToGroup",value:function(e,t,s,n){this.sendMessage(e,void 0,s,n,void 0,t)}},{key:"sendBroadcasterNotice",value:function(e){this.sendMessageToUser(e,cb.room_slug,c.Yellow,c.Purple)}},{key:"sendErrorMessage",value:function(e,t,s){this.sendMessage(e,t,void 0,c.Red,void 0,s)}},{key:"sendWarningMessage",value:function(e,t,s){this.sendMessage(e,t,void 0,c.Orange,void 0,s)}},{key:"sendSuccessMessage",value:function(e,t,s){this.sendMessage(e,t,void 0,c.Green,void 0,s)}},{key:"sendInfoMessage",value:function(e,t,s){this.sendMessage(e,t,void 0,c.Black,void 0,s)}},{key:"sendMessage",value:function(e,t,s,n,i,a){void 0===i&&(i="bold"),cb.sendNotice(e,t,s,n,i,a)}}],(s=null)&&l(t.prototype,s),n&&l(t,n),e}();function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var s=[],n=!0,i=!1,a=void 0;try{for(var o,r=e[Symbol.iterator]();!(n=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw a}}return s}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var p=new(function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,g(this,"whiteListed",new Set),g(this,"blackListed",new Set),g(this,"onCooldown",new Set),g(this,"inCheck",new Map),g(this,"coolDownCommands",[]),g(this,"accessControl",void 0),g(this,"recentCommandActivators",new Set),this.initCBSettings(),this.accessControl=new a(cb.settings.allow_mod_superuser_cmd,this.config.Dev,this.config.FairyHelper),this.coolDownCommands=[],void 0!==cb.settings.import_list&&cb.settings.import_list.length>0)try{this.importFromJson(cb.settings.import_list),h.sendSuccessMessage("Imported data from settings.",cb.room_slug)}catch(e){h.sendErrorMessage("An unexpected error happened during the import. Is your data correct?",cb.room_slug)}}var t,s,i;return t=e,(s=[{key:"sendDevInfo",value:function(e){this.accessControl.hasPermission(e,"SUPERUSER")&&h.sendSuccessMessage("Captcha Guard v"+this.config.Version+" is running.",e.user)}},{key:"sendStatusInfo",value:function(e){this.blackListed.has(e.user)?h.sendErrorMessage("You are blacklisted in this room and can't send any messages.",e.user):this.whiteListed.has(e.user)||h.sendWarningMessage("This room requires people to verify using a simple math captcha before you can join the chat.",e.user)}},{key:"checkAndAddToLists",value:function(e){var t=this;if(!this.isInAnyList(e.user)){if(this.accessControl.getClaims(e).some(function(e){return t.getWhitelistedClaims().includes(e)}))return this.whiteListed.add(e.user),!1;var s=d(u.generateCaptcha(),2),n=s[0],i=s[1];return h.sendWarningMessage("Please solve the following question to join the chat (you got ".concat(cb.settings.answering_time," seconds):"),e.user),cb.setTimeout(function(){h.sendInfoMessage(n,e.user),t.inCheck.set(e.user,i),cb.setTimeout(function(){return t.inCheck.delete(e.user)},1e3*cb.settings.answering_time)},100),!0}return!1}},{key:"checkAnswer",value:function(e){var t=this;if(this.inCheck.has(e.user)){e["X-Spam"]=!0,e.c="#FFFFFF",e.background="#E7E7E7";var s=this.inCheck.get(e.user);this.inCheck.delete(e.user),s(e.m)?(h.sendSuccessMessage("Captcha correct. Your messages are now visible to the others!",e.user),this.whiteListed.add(e.user)):this.isInAnyList(e.user)||(h.sendErrorMessage("Wrong answer provided. You'll have a cooldown time of ".concat(cb.settings.cooldown_time," seconds and then get another chance to answer a question."),e.user),this.onCooldown.add(e.user),cb.setTimeout(function(){t.onCooldown.delete(e.user);var s=d(u.generateCaptcha(),2),n=s[0],i=s[1];h.sendSuccessMessage("Your cooldown time is over!",e.user),cb.setTimeout(function(){h.sendWarningMessage("Please solve the following question to join the chat (you got ".concat(cb.settings.answering_time," seconds):"),e.user),cb.setTimeout(function(){h.sendInfoMessage(n,e.user),t.inCheck.set(e.user,i),cb.setTimeout(function(){return t.inCheck.delete(e.user)},1e3*cb.settings.answering_time)},100)},100)},1e3*cb.settings.cooldown_time))}}},{key:"handleCommands",value:function(e){var t=this;if(0===e.m.indexOf(this.config.Prefix)){e["X-Spam"]=!0,e.c="#FFFFFF",e.background="#E7E7E7";var s=e.m.slice(this.config.Prefix.length).trim().split(/ +/g),n=s.shift();if(void 0!==n){if(n=n.toLowerCase(),this.coolDownCommands.includes(n)){if(this.recentCommandActivators.has(e.user))return void h.sendWarningMessage("Sorry some commands have a cooldown time. Wait a minute until your next command.",e.user);this.accessControl.hasPermission(e,"SUPERUSER")||(this.recentCommandActivators.add(e.user),cb.setTimeout(function(){t.recentCommandActivators.delete(e.user)},6e4))}if(this.accessControl.hasPermission(e,"MOD"))if(n===this.config.CMDS.SUPPORT)cb.settings.allow_mod_superuser_cmd=!cb.settings.allow_mod_superuser_cmd,h.sendSuccessMessage("Support mode for ".concat(this.config.Name," Ver. ").concat(this.config.Version," is now ").concat(cb.settings.allow_mod_superuser_cmd?"ACTIVATED":"DEACTIVATED"," !"),e.user);else if(n===this.config.CMDS.DEBUG){var i={whitelisted:Array.from(this.whiteListed),blacklisted:Array.from(this.blackListed),incheck:Array.from(this.inCheck),onCooldown:Array.from(this.onCooldown)};h.sendInfoMessage(JSON.stringify(i),e.user)}if(this.accessControl.hasPermission(e,"SUPERUSER"))switch(n){case this.config.CMDS.RELOAD:if(void 0!==cb.settings.import_list&&cb.settings.import_list.length>0)try{this.importFromJson(cb.settings.import_list),h.sendSuccessMessage("Imported data from settings.",e.user)}catch(t){h.sendErrorMessage("An unexpected error happened during the import. Is your data correct?",e.user)}else h.sendWarningMessage("No data found to import/reload",e.user);break;case this.config.CMDS.IMPORT:var a=s.join(" ");try{this.importFromJson(a),h.sendSuccessMessage("Imported given data",e.user)}catch(t){h.sendErrorMessage("An unexpected error happened during the import. Is your data correct?",e.user)}break;case this.config.CMDS.EXPORT:h.sendSuccessMessage(this.exportToJson(),e.user);break;case this.config.CMDS.CLEAR:this.whiteListed.clear(),this.blackListed.clear(),this.inCheck.clear(),this.onCooldown.clear(),this.recentCommandActivators.clear(),h.sendSuccessMessage("All lists have been cleared!",e.user);break;case this.config.CMDS.BLACKLIST:var o=d(s,2),r=o[0],c=o[1];r===this.config.ARGS.BLACKLIST.ADD?(this.deleteFromAllLists(c),this.blackListed.add(c),h.sendSuccessMessage("Added user ".concat(c," to BLACKLIST. Recheck the username to make sure it's the right user."),e.user)):r===this.config.ARGS.BLACKLIST.REMOVE?(this.blackListed.delete(c),h.sendSuccessMessage("Removed user ".concat(c," from the BLACKLIST (if user was present in list)."),e.user)):h.sendErrorMessage("Command not recognized. Usage: '".concat(this.config.Prefix," ").concat(this.config.CMDS.BLACKLIST," [").concat(this.config.ARGS.BLACKLIST.ADD,"/").concat(this.config.ARGS.BLACKLIST.REMOVE,"] username'."),e.user);break;case this.config.CMDS.WHITELIST:var u=d(s,2),l=u[0],f=u[1];l===this.config.ARGS.WHITELIST.ADD?(this.deleteFromAllLists(f),this.whiteListed.add(f),h.sendSuccessMessage("Added user ".concat(f," to WHITELIST. Recheck the username to make sure it's the right user."),e.user)):l===this.config.ARGS.WHITELIST.REMOVE?(this.whiteListed.delete(f),h.sendSuccessMessage("Removed user ".concat(f," from the WHITELIST (if user was present in list)."),e.user)):h.sendErrorMessage("Command not recognized. Usage: '".concat(this.config.Prefix," ").concat(this.config.CMDS.WHITELIST," [").concat(this.config.ARGS.WHITELIST.ADD,"/").concat(this.config.ARGS.WHITELIST.REMOVE,"] username'."),e.user)}}}}},{key:"filterMessage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.whiteListed.has(e.user)&&!this.blackListed.has(e.user)?e:!0===e["X-Spam"]?e:(e["X-Spam"]=!0,e.c="#FFFFFF",e.background="#E7E7E7",t&&(this.inCheck.has(e.user)?h.sendErrorMessage("Your message was not sent! You haven't provided the correct answer for the question yet. (How did you arrive to this stage of the bot? :S)",e.user):this.blackListed.has(e.user)?h.sendErrorMessage("Your message was not sent! You have been blacklisted in this room. You can't join the chat.",e.user):this.onCooldown.has(e.user)?h.sendWarningMessage("Your message was not sent! You are on cooldown. Please wait until your cooldown of ".concat(cb.settings.cooldown_time," seconds is over and the next question pops up, then answer that question correctly to join the chat."),e.user):h.sendErrorMessage("Your message was not sent! It seems you arent in any of the lists yet (InCheck, Cooldown, Blacklist, Whitelist). Try to refresh your browser to automagically join an appropriate list.",e.user)),e)}},{key:"whitelistOnTip",value:function(e){cb.settings.whitelist_tip&&!this.whiteListed.has(e.from_user)&&this.whiteListed.add(e.from_user)}},{key:"importFromJson",value:function(e){var t=JSON.parse(e);this.blackListed=new Set(t.blackListed),this.whiteListed=new Set(t.whiteListed)}},{key:"exportToJson",value:function(){var e={blackListed:Array.from(this.blackListed),whiteListed:Array.from(this.whiteListed)};return JSON.stringify(e)}},{key:"isInAnyList",value:function(e){return this.inCheck.has(e)||this.onCooldown.has(e)||this.whiteListed.has(e)||this.blackListed.has(e)}},{key:"deleteFromAllLists",value:function(e){this.inCheck.delete(e),this.onCooldown.delete(e),this.whiteListed.delete(e),this.blackListed.delete(e)}},{key:"getWhitelistedClaims",value:function(){var e=[];return cb.settings.captcha_lightblue||e.push("IS_LIGHTBLUE"),cb.settings.captcha_darkblue||e.push("IS_DARKBLUE"),cb.settings.captcha_lightpurple||e.push("IS_LIGHTPURPLE"),cb.settings.captcha_darkpurple||e.push("IS_DARKPURPLE"),cb.settings.captcha_fanclub||e.push("IN_FANCLUB"),cb.settings.captcha_mods||e.push("IS_MOD"),cb.settings.captcha_broadcaster||e.push("IS_BROADCASTER"),e}},{key:"initCBSettings",value:function(){cb.settings_choices=[{name:"captcha_grey",label:"Activate Captcha for Greys (if you tunr this to 'No' the bot wont act for any of the below either)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"Yes"},{name:"captcha_lightblue",label:"Activate Captcha for Light Blues (own or have purchased tokens)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"Yes"},{name:"captcha_darkblue",label:"Activate Captcha for Dark Blues (tipped at least 50 tokens in the past 2 weeks)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"captcha_lightpurple",label:"Activate Captcha for Light Purple (tipped at least 250 tokens in the past 2 weeks)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"captcha_darkpurple",label:"Activate Captcha for Dark Purple (tipped at least 1000 tokens in the past 2 weeks)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"captcha_fanclub",label:"Activate Captcha for Fan Club members",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"captcha_mods",label:"Activate Captcha for Mods",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"captcha_broadcaster",label:"Activate Captcha for Broadcaster (for testing for yourself)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"No"},{name:"whitelist_tip",label:"Automagically whitelist users that have tipped in your current session",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"Yes"},{name:"mod_allow_broadcaster_cmd",label:"Allow mods and the developer to use commands? (Useful if you need a little extra help)",type:"choice",choice1:"Yes",choice2:"No",defaultValue:"Yes"},{name:"cooldown_time",label:"Time (in seconds) the user has to wait after wrongly answering before he gets another question (prevents bots from spamming answers)",type:"int",minValue:10,maxValue:180,required:!0,defaultValue:30},{name:"answering_time",label:"Time (in seconds) the user has to correctly answering before he gets a new question after an interaction (clears the checking list to ease CB servers, not really necessary)",type:"int",minValue:10,maxValue:300,required:!0,defaultValue:60},{name:"import_list",label:"Enter the white- and blacklist data here. Get your list export using the '/export' command and paste the exact message (without 'Notice: ') in here to use the saved lists. Users don't have to repeat the catpcha again and blacklistet users stay blacklisted.",type:"str",required:!1,defaultValue:""}],cb.settings.captcha_grey=n(cb.settings.captcha_grey),cb.settings.captcha_lightblue=n(cb.settings.captcha_lightblue),cb.settings.captcha_darkblue=n(cb.settings.captcha_darkblue),cb.settings.captcha_lightpurple=n(cb.settings.captcha_lightpurple),cb.settings.captcha_darkpurple=n(cb.settings.captcha_darkpurple),cb.settings.captcha_fanclub=n(cb.settings.captcha_fanclub),cb.settings.captcha_mods=n(cb.settings.captcha_mods),cb.settings.captcha_broadcaster=n(cb.settings.captcha_broadcaster),cb.settings.whitelist_tip=n(cb.settings.whitelist_tip),cb.settings.allow_mod_superuser_cmd=n(cb.settings.mod_allow_broadcaster_cmd)}}])&&f(t.prototype,s),i&&f(t,i),e}())({Name:"Captcha Guard - Protecc your room!",Version:"0.1.0",Dev:"thmo_",FairyHelper:[],Prefix:"/guard ",CMDS:{RELOAD:"reload",IMPORT:"import",EXPORT:"export",CLEAR:"clear",DEBUG:"debug",WHITELIST:"whitelist",BLACKLIST:"blacklist"},ARGS:{WHITELIST:{ADD:"-add",REMOVE:"-remove"},BLACKLIST:{ADD:"-add",REMOVE:"-remove"}}});cb.onEnter(function(e){p.sendDevInfo(e),p.sendStatusInfo(e),p.checkAndAddToLists(e)}),cb.onMessage(function(e){p.checkAnswer(e);var t=p.checkAndAddToLists(e);return p.filterMessage(e,!t),p.handleCommands(e),e}),cb.onTip(function(e){p.whitelistOnTip(e)})}]);
© Copyright Chaturbate 2011- 2024. All Rights Reserved.