User:Kylu/botcfg.js

/**********************************************************        *     File: AdminBot options                             * *    Name: adminbot.js                                  * *    Format: custom                                     * *                                                       *         *     Please note that this file is not drop-in          * *    compatible for other users. Externally loaded     * *    scripts and text files are used that you may       * *    not have access to. *        *                                                        *         **********************************************************/

bot-options { /**********************************************************        *     Section: Bot options                               * *                                                       *         *     Define scripts, text-files, filters,               * *    and sources. *        *                                                        *         *     Non-source options may be included here, but       * *    ideally are loaded from config.txt instead. *        *                                                        *         **********************************************************/

/* Files and paths */

config-file:		/home/jbarrett/adminbot/config/config.txt blacklist:		/home/jbarrett/adminbot/lists/blacklist.txt whitelist:		/home/jbarrett/adminbot/lists/whitelist.txt adminlist:		/home/jbarrett/adminbot/lists/adminlist.txt

swap-path:		/home/jbarrett/adminbot/temp/ access-log:		/home/jbarrett/adminbot/logs/access.log error-log:		/home/jbarrett/adminbot/logs/error.log user-database:		/home/jbarrett/adminbot/config/userdb.txt admin-database:		/home/jbarrett/adminbot/config/admindb.txt

/* Configuration options */ use-meta-bl:		true use-beta-wl:		true use-misza-wl:		true restart-on-error:	true

}

irc-options { /**********************************************************        *     Section: IRC options                               * *                                                       *         *     Define RC source and output information            * *                                                       *         *     Names are configured in nicks.txt (long list)      * *    which is defined in config.txt                     * *                                                       *         *     Too many damn config files. *        *                                                        *         **********************************************************/

rc { server:		irc.wikimedia.org port:		default channel:	#en.wikipedia }	control { server:		irc.freenode.net port:		default listen:		#countervandalism } }

wiki-options { /**********************************************************        *                                                        *         *     Section: Wiki options                              * *    Description: blah blah blah                        * *                                                       *         **********************************************************/	url:			http://en.wikipedia.org/wiki/ username:		Kylu password:		AT2gadee-quei5Eib-Oz2he7Ce /* Oh exploitable! It's a good thing nobody'll ever read this! */	rights:			rights-options }

rights-options { /**********************************************************        *                                                        *         *     Section: Rights options                            * *                                                       *         *     Shows various userrights and/or custom             * *    scripts emulating those rights for the             * *    project, for use by the adminbot program. *        *                                                        *         **********************************************************/

admin:			true /**********************************************************        *                                                        *         *     Section: Admin flag                                * *                                                       *         *     Grants access to the usual admin tools             * *                                                       *         **********************************************************/

bureaucrat:		true /**********************************************************        *                                                        *         *     Section: Bureaucrat flag                           * *                                                       *         *     Disabled, see userrights below. *        *     Renamings will have to be done either by           * *    a legitimate bureaucrat or direct database         * *    modification                                       * *                                                       *         **********************************************************/

checkuser:		custom { /**********************************************************        *                                                        *         *     Section: checkuser custom script                   * *    Simpler than regular checkuser, this simply        * *    returns ips w/xff for any usernames supplied,      * *    usernames for any ip or CIDR range supplied,       * *    or (oddly) 127.0.0.1 if invalid usernames or       * *    IPs are supplied. It will not perform recursive   * *    checkuser lookups like the in-wiki tool does, nor  * *    can we read the contents of emails. :(            *         *                                                        *         *                                                        *         **********************************************************/

url:	 	http://toolserver.org/~kylu/query.html port:		default token:		m9a7g4y0g0t1j9d2!kylu script:		/home/jbarrett/scripts/checkuser.sql.script log:		false }	oversight:		custom { /**********************************************************        *                                                        *         *     Section: Oversight custom script                   * *    This script allows specific revisions of a page    * *    to be removed from the public database, working    * *    exactly like the oversight function. Note that    * *    unlike "real" oversight, this does not place       * *    entries into the oversight log. *        *                                                        *         **********************************************************/

url:		http://toolserver.org/~kylu/query.html port:		default token:		m9a7g4y0g0t1j9d2!kylu script:		/home/jbarrett/scripts/oversight.sql.script log:		false }	userrights:		custom { /**********************************************************        *                                                        *         *     Section: userrights custom script                  * *    Modify a user account rights directly through      * *    the database. Please don't use "drop user"        * *    or the sysadmins will use hunter-killer droids     * *    on everyone involved. Thanks. *        *                                                        *         **********************************************************/

url:		http://toolserver.org/~kylu/query.html port:		default token:		m9a7g4y0g0t1j9d2!kylu script:		/home/jbarrett/scripts/steward.sql.script log:		false }	custom-lockdb:		custom { /**********************************************************        *                                                        *         *     Section: lockdb custom script                      * *    Since we're not flagged developer, this section is * *    used to give a method of locking and unlocking     * *    the site/database. This allows massive vandalism  * *    to be stopped and yet at least keep the site       * *    readable. To be used only as a last resort. *        *                                                        *         **********************************************************/

url:		http://toolserver.org/~kylu/query.html port:		default token:		m9a7g4y0g0t1j9d2!kylu script:		/home/jbarrett/scripts/siteadmin.sql.script log:		false } }

define-reader { /**********************************************************        *                                                        *         *     Section: Reader options                            * *    Purpose: To define the reader of this document. *        *     There are a number of folks who I suspect          * *    will never get this far and complain instead,      * *    showcasing their actual priorities. *        *                                                        *         *     C'est la vie. Take a joke. *        *                                                        *         **********************************************************/

case (complained = 1): reader:		troublemaker case (read.this.far = 1 and laughing = 0): reader:		sucker case (tried.password = 1): reader:		naive.moron case else: reader:		laughing }