New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gampang

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gampang

"Gampang" is a whatsapp bot framework. Based on @adiwajshing/baileys

latest
Source
npmnpm
Version
2.3.7
Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

Gampang

"Gampang" adalah WhatsApp Bot framework yang dibuat oleh anak bangsa dan berdiri diatas library @adiwajshing/baileys

Installation

Instalasi sangatlah mudah, kalian bisa menggunakan package manager kesukaan kalian. Contoh:

    pnpm add gampang

atau

    npm i gampang

atau

    yarn add gampang

Usage

Sangatlah gampang sekali untuk menggunakannya

const { Client, SessionManager } = require('gampang');

const client = new Client(
  new SessionManager(
    'folder_session', //  ini bisa di-isi dengan path session (bisa folder, dan file)
    'folder', // isi 'file' jika ingin menggunakan file.
  ),
  {
    'qr': {
      'store': 'file',
      'options': {
        'dest': 'qr.png',
      },
    },
  },
); // 'folder_session' bisa arahin ke direktori session kalian yah

client.on('message', async (context) => {
  if (context.text.toLowerCase() === 'halo') {
    await context.reply('Halo juga!!');
  }
});

client.launch(); // jalankan bot

Keywords

baileys

FAQs

Package last updated on 18 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts