@neoxr/wb 3.1.1 → 3.2.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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,12 +1,14 @@
1
1
  require('dotenv').config()
2
2
  const fs = require('fs')
3
+ const Function = new (require('./Utils/Function'))
4
+ const Scraper = new (require('./Utils/Scraper'))
3
5
  module.exports = class Component {
4
6
  Config = JSON.parse(fs.readFileSync('./config.json'))
5
7
  Client = require('./Utils/_Connection')
6
8
  Baileys = require('./Utils/Connection')
7
9
  Converter = new (require('./Utils/Converter'))
8
- Function = new (require('./Utils/Function'))
9
- Scraper = new (require('./Utils/Scraper'))
10
+ Function = Function
11
+ Scraper = Scraper
10
12
  Local = new(require('./Utils/Local'))
11
13
  MongoDB = /mongo/.test(process.env.DATABASE_URL) && process.env.DATABASE_URL ? new (require('./Utils/Mongo')) : false
12
14
  PostgreSQL = /postgres/.test(process.env.DATABASE_URL) && process.env.DATABASE_URL ? new (require('./Utils/Postgre')) : false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@neoxr/wb",
3
- "version":"3.1.1",
3
+ "version":"3.2.2",
4
4
  "description":"Simplicity WhatsApp Bot (Baileys)",
5
5
  "main":"index.js",
6
6
  "engines": {