2018-05-01 00:59:40 +00:00
function _ _krequire ( path ) {
return eval ( '(()=>{var exports={};' + fs . readFileSync ( _epdata + path , 'utf8' ) . toString ( ) + ';return exports})()' ) ;
}
//get that epapi
var _epapi = _ _krequire ( 'epapi.js' ) ;
//start it up, brand as endpwn
_epapi . go ( 'asarpwn' , false , 'EndPwn' , false ) ;
2018-04-18 02:35:29 +00:00
$api . data += "endpwn/" ;
$api . discord . toggleDeveloper = function ( ) {
if ( wc . findFunc ( 'isDeveloper' ) [ 1 ] . exports . isDeveloper ) { wc . findFunc ( 'isDeveloper' ) [ 1 ] . exports . _ _defineGetter _ _ ( 'isDeveloper' , ( ) => false ) ; }
else { wc . findFunc ( 'isDeveloper' ) [ 1 ] . exports . _ _defineGetter _ _ ( 'isDeveloper' , ( ) => true ) ; }
}
$api . ui . fakeMsg = function ( text , func ) {
if ( typeof ( text ) != 'string' ) { $api . internal . messageUI . receiveMessage ( this . getCurrentChannel ( ) , text ) ; return ; }
var msg = $api . internal . messageCreation . createMessage ( this . getCurrentChannel ( ) , text ) ;
msg . author . bot = true ;
msg . author . avatar = 'EndPwn'
msg . author . username = 'EndPwn' ;
msg . author . discriminator = '666' ;
msg . author . id = '1' ;
msg . author . flags = '63' ;
msg . timestamp = new Date ( ) . toISOString ( ) ;
msg . state = 'SENT' ;
if ( typeof ( func ) != 'undefined' ) { func ( msg ) ; }
$api . internal . messageUI . receiveMessage ( this . getCurrentChannel ( ) , msg ) ;
}
$api . ui . createMsg = function ( text ) {
var msg = $api . internal . messageCreation . createMessage ( this . getCurrentChannel ( ) , text ) ;
msg . author . bot = true ;
msg . author . avatar = 'EndPwn'
msg . author . username = 'EndPwn' ;
msg . author . discriminator = '666' ;
msg . author . id = '1' ;
msg . author . flags = '63' ;
msg . timestamp = new Date ( ) . toISOString ( ) ;
msg . state = 'SENT' ;
return msg ;
}
// beautifuldiscord, used to load css styles
// credit to leovoel
bdwatcher = null , bdtag = null , setupCSS = function ( n ) { var e = fs . readFileSync ( n , "utf-8" ) ; null === bdtag && ( bdtag = document . createElement ( "style" ) , document . head . appendChild ( bdtag ) ) , bdtag . innerHTML = e , null === bdwatcher && ( bdwatcher = fs . watch ( n , { encoding : "utf-8" } , function ( e , w ) { if ( "change" === e ) { var i = fs . readFileSync ( n , "utf-8" ) ; bdtag . innerHTML = i } } ) ) } ;
// SELF_XSS warning disable (dr1ft)
2018-05-01 00:59:40 +00:00
$api . util . findFuncExports ( 'consoleWarning' ) . consoleWarning = e => { } ;
2018-04-18 02:35:29 +00:00
// blend the linq.js methods into the array prototype for implicit Enumerable.from()
if ( ! typeof ( Enumerable ) == 'undefined' )
for ( var k in Enumerable . prototype )
if ( ! Array . prototype . hasOwnProperty ( k ) )
eval ( 'Array.prototype.' + k + '=function(){return Enumerable.prototype.' + k + '.apply(Enumerable.from(this),arguments)}' ) ;
// load autoexec.js
try { require ( _epdata + "/autoexec" ) } catch ( e ) { console . warn ( "Your autoexec.js file appears to have an error:\n\n" + e ) } ;
// welcome message
window . _epabout = function ( ) {
console . log ( '%c' , 'font-size:1px; line-height:100px; padding:50px 50px; background-size:100px 100px; background-image:url("https://block57.net/discord/endpwn_dark.png");' ) ;
console . log ( ` EndPwn2 v ${ _epver } - asarpwn method | EPAPI v ${ _epapi . version } loaded. \n EndPwn created by quant/dr1ft \n upkeep and additional features by block \n webcrack.js, asarpwn, and a lot of help from bootsy \n BeautifulDiscord by leovoel ` ) ;
}
//_epabout();
window . _epmenu = function ( ) { require ( 'electron' ) . remote . getCurrentWindow ( ) . loadURL ( 'https://block57.net/discord' ) ; }