@neoxr/wb 4.6.0 → 4.6.2

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/index.js ADDED
@@ -0,0 +1,33 @@
1
+ require('dotenv').config()
2
+ const fs = require('fs')
3
+
4
+ // No Locked, it can be manipulated >_<
5
+ const Function = new (require('./Utils/Function'))
6
+ const Scraper = new (require('./Utils/Scraper'))
7
+
8
+ class Component {
9
+ constructor() {
10
+ this.Config = JSON.parse(fs.readFileSync('./config.json'))
11
+ this.Client = require('./Utils/_Connection')
12
+ this.Baileys = require('./Utils/Connection')
13
+ this.Converter = new (require('./Utils/Converter'))
14
+ this.Function = Function
15
+ this.Scraper = Scraper
16
+ this.Scandir = new (require('./Utils/Loader'))
17
+ this.Message = require('./Utils/Message')
18
+ this.MongoDB = /mongo/.test(process.env.DATABASE_URL) && process.env.DATABASE_URL ? new (require('./Utils/Mongo')) : false
19
+ this.PostgreSQL = /postgres/.test(process.env.DATABASE_URL) && process.env.DATABASE_URL ? new (require('./Utils/Postgres')) : false
20
+ this.Cloud = require('./Utils/_Store')
21
+ this.InvCloud = require('./Utils/Store')
22
+ this.Logs = require('./Utils/Logs')
23
+ this.NeoxrCommands = new (require('./Utils/Cmd'))
24
+ this.NeoxrApi = require('@neoxr/api')
25
+ this.Cooldown = require('./Utils/Cooldown')
26
+ this.Queue = require('./Utils/Queue')
27
+ this.Spam = require('./Utils/Spam')
28
+ this.Session = require('./Utils/Session')
29
+ this.Connector = require('./Utils/Connector')
30
+ }
31
+ }
32
+
33
+ module.exports = Component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neoxr/wb",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "Simplicity WhatsApp Bot (Baileys)",
5
5
  "main": "index.js",
6
6
  "repository": {