Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hansputera/gampang
A whatsapp bot framework for NodeJS
https://github.com/hansputera/gampang
baileys baileys-md bot whatsapp-bot
Last synced: about 1 month ago
JSON representation
A whatsapp bot framework for NodeJS
- Host: GitHub
- URL: https://github.com/hansputera/gampang
- Owner: hansputera
- License: gpl-3.0
- Created: 2022-08-12T14:09:27.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2024-09-24T13:01:41.000Z (about 2 months ago)
- Last Synced: 2024-10-01T00:40:14.552Z (about 1 month ago)
- Topics: baileys, baileys-md, bot, whatsapp-bot
- Language: TypeScript
- Homepage: https://npmjs.com/package/gampang
- Size: 2.18 MB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gampang
"Gampang" adalah WhatsApp Bot framework yang dibuat oleh anak bangsa dan berdiri diatas library [@adiwajshing/baileys](https://npmjs.com/package/@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
```js
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 yahclient.on('message', async (context) => {
if (context.text.toLowerCase() === 'halo') {
await context.reply('Halo juga!!');
}
});client.launch(); // jalankan bot
```