Skip to content

const { default: makeWASocket, useSingleFileAuthState } = require("@adiwajshing/baileys"); const { state, saveState } = useSingleFileAuthState('./auth_info.json'); async function startBot() { const sock = makeWASocket({ auth: state }); sock.ev.on('messages.upsert', async ({ messages }) => { const msg = messages[0]; if (!msg.key.fromMe && msg.message?.conversation) { await sock.sendMessage(msg.key.remoteJid, { text: "Ich bin gerade nicht erreichbar. Ich melde mich, sobald ich kann!" }); } }); sock.ev.on('creds.update', saveState); } startBot(); #114

@pz952

Description

@pz952
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions