@imaentity/selfjs 4.0.0 → 4.1.0

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.
Files changed (4) hide show
  1. package/README.md +12 -10
  2. package/docs.md +1142 -848
  3. package/package.json +1 -1
  4. package/self.js +151 -3
package/README.md CHANGED
@@ -7,15 +7,17 @@ View Documentation [**Here**](https://github.com/ImaEntity/SelfJS/blob/master/do
7
7
  ## Bot Example's
8
8
  Echo Bot:
9
9
  ```JS
10
- const discord = require("@imaentity/SelfJS");
11
- const client = new discord.Client();
10
+ const self = require("@imaentity/SelfJS");
11
+ const client = new self.Client();
12
12
 
13
- (async function() {
14
- await client.login("TOKEN");
15
-
16
- client.on("MESSAGE_CREATE", async function(msg) {
17
- if(msg.author.bot || msg.author.self) return;
18
- await client.sendMessage(msg.channel_id, msg.content);
19
- });
20
- }());
13
+ client.on("MESSAGE_CREATE", async function(msg) {
14
+ if(msg.author.bot || msg.author.self) return;
15
+ await client.sendMessage(msg.channel_id, msg.content);
16
+ });
17
+
18
+ client.on("READY", function() {
19
+ console.log("Ready!");
20
+ });
21
+
22
+ client.login("TOKEN");
21
23
  ```