@imaentity/selfjs 1.3.5 → 1.3.6

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 CHANGED
@@ -1,7 +1,9 @@
1
1
  # SelfJS
2
+ Install: `npm i @imaentity/selfjs`
3
+
2
4
  An example of an echo bot:
3
5
  ```JS
4
- const discord = require("SelfJS");
6
+ const discord = require("@imaentity/SelfJS");
5
7
  const client = new discord.Client();
6
8
 
7
9
  (async function() {
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.5",
3
+ "version": "1.3.6",
4
4
  "description": "Breaking Discord's TOS to bot user accounts.",
5
5
  "main": "self.js",
6
6
  "repository": {
package/self.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @name SelfJS
3
3
  * @description Breaking Discord's TOS to bot user accounts.
4
4
  * @author Эмберс
5
- * @version 1.3.5
5
+ * @version 1.3.6
6
6
  */
7
7
 
8
8
  const https = require("https");
@@ -87,7 +87,7 @@ module.exports = {
87
87
  this.statusUpdateFunction = null;
88
88
  }
89
89
 
90
- login(token, isMobile, logMsgs) {
90
+ login(token, isMobile = false, logMsgs = false) {
91
91
  return new Promise(function(resolve) {
92
92
  this.token = token;
93
93
  this.socket = new ws("wss://gateway.discord.gg?v=10&encoding=json");