This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import makeWASocket, { fetchLatestBaileysVersion } from "@whiskeysockets/baileys"; | |
import { existsSync, writeFileSync, readFileSync } from "fs"; | |
import path from "path"; | |
const __dirname = path.resolve(); | |
const authFile = path.join(__dirname, "auth_info.json"); | |
const storageFile = path.join(__dirname, "bot_storage.json"); | |
let authState = { creds: {}, keys: {} }; | |
let storage = { bans: {}, mutes: {}, activity: {} }; // per group |