@imaentity/selfjs 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/docs.md +1 -1
- package/package.json +5 -2
- package/self.js +2 -4
package/README.md
CHANGED
package/docs.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# Class
|
|
11
11
|
- **Client**: This class allows the interaction with the Discord server. The following are its methods:
|
|
12
12
|
|
|
13
|
-
- **login(token, isMobile, logMsgs)**: Logs in the client to Discord.
|
|
13
|
+
- **login(token, isMobile = false, logMsgs = false)**: Logs in the client to Discord.
|
|
14
14
|
|
|
15
15
|
- **onMessage(msgFunc)**: Function to be executed when a message is received.
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imaentity/selfjs",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Breaking Discord's TOS to bot user accounts.",
|
|
5
5
|
"main": "self.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,5 +17,8 @@
|
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/ImaEntity/SelfJS/issues"
|
|
19
19
|
},
|
|
20
|
-
"homepage": "https://github.com/ImaEntity/SelfJS#readme"
|
|
20
|
+
"homepage": "https://github.com/ImaEntity/SelfJS#readme",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"ws": "^7.5.4"
|
|
23
|
+
}
|
|
21
24
|
}
|
package/self.js
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
* @name SelfJS
|
|
3
3
|
* @description Breaking Discord's TOS to bot user accounts.
|
|
4
4
|
* @author Эмберс
|
|
5
|
-
* @version 1.3.
|
|
5
|
+
* @version 1.3.7
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const https = require("https");
|
|
9
9
|
const ws = require("ws");
|
|
10
10
|
const fs = require("fs");
|
|
11
|
-
const crypto = require("crypto");
|
|
12
|
-
const dgram = require("dgram");
|
|
13
11
|
|
|
14
12
|
module.exports = {
|
|
15
13
|
CDNBaseOpt: {
|
|
@@ -87,7 +85,7 @@ module.exports = {
|
|
|
87
85
|
this.statusUpdateFunction = null;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
login(token, isMobile, logMsgs) {
|
|
88
|
+
login(token, isMobile = false, logMsgs = false) {
|
|
91
89
|
return new Promise(function(resolve) {
|
|
92
90
|
this.token = token;
|
|
93
91
|
this.socket = new ws("wss://gateway.discord.gg?v=10&encoding=json");
|