fffggggg
This commit is contained in:
parent
f8ab27a62b
commit
36a473fa14
23
index.js
23
index.js
@ -1,20 +1,9 @@
|
|||||||
import * as baileys from '@whiskeysockets/baileys';
|
const { default: makeWASocket, useMultiFileAuthState, DisconnectReason, fetchLatestBaileysVersion } = require('@whiskeysockets/baileys');
|
||||||
const {
|
const express = require('express');
|
||||||
default: makeWASocket,
|
const { Boom } = require('@hapi/boom');
|
||||||
useMultiFileAuthState,
|
const qrcode = require('qrcode');
|
||||||
DisconnectReason,
|
const path = require('path');
|
||||||
fetchLatestBaileysVersion
|
const fs = require('fs');
|
||||||
} = baileys;
|
|
||||||
|
|
||||||
import express from 'express';
|
|
||||||
import { Boom } from '@hapi/boom';
|
|
||||||
import qrcode from 'qrcode';
|
|
||||||
import fs from 'fs';
|
|
||||||
import path from 'path';
|
|
||||||
import { fileURLToPath } from 'url';
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
|
||||||
const __dirname = path.dirname(__filename);
|
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
"name": "baileys-whatsapp-api",
|
"name": "baileys-whatsapp-api",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "API WhatsApp multi-device avec Baileys",
|
"description": "API WhatsApp multi-device avec Baileys",
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js"
|
"start": "node index.js"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user