User:SleepyMode/SleepyBot.js

///////////////////////////////////////////////////////////////////////// //     *** SleepyBot is a Bot for Miraheze made by SleepyMode ***     // //     *** (C) SleepyMode + Miraheze   -  All rights reserved ***     // //     *** Want to implement parts of the Code? Contact Me!!! ***    // ///////////////////////////////////////////////////////////////////////// class SleepyLib { construct { this.name = "SleepyLib"; this.info = "me no bot just lib no shutdown plz :(";		this.vers = "A1";	}	function getURL {		document.url;	}	function edit( page, content ) {		var cur_url = getURL;		if( page)		document.load( "Im a url address" );	}	function Emergency( toggleurl, toggleuser ) {		throw new Error("SleepyLib: Emergency Stopped due to an UNKNOWN reason"); //Stops the Code from continuing.		return end; //If fails to Stop	} }

class SleepyBot extends SleepyLib { info { this.name = "SleepyBot"; this.info = "A bot.. Not a Robot!"; this.vers = "A1"; }	function OnEmergencyEvent { Emergency; return end; }	function Load { //Do something!!! :(	} }

//https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json var Sleepy_Bot = new SleepyBot; window.onLoad = function { Sleepy_Bot.Load; };