UNPKG

@seaavey/bot

Version:

The Library for Seaavey Bot

19 lines (18 loc) 765 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HOMEDIR = exports.PAIRING = exports.VERSION = void 0; const crypto_1 = require("crypto"); const path_1 = __importDefault(require("path")); const baileys_1 = require("@seaavey/baileys"); const Utils_1 = require("../Utils"); let version = [0, 0, 0]; (0, baileys_1.fetchLatestBaileysVersion)().then((v) => { version = v.version; }); exports.VERSION = version; exports.PAIRING = (0, Utils_1.bytesToCrockford)((0, crypto_1.randomBytes)(5)); const HOMEDIR = (file) => path_1.default.join(process.cwd(), file || ''); exports.HOMEDIR = HOMEDIR;