# neoxr-bot

> WhatsApp Bot (Base)

Latest version **2.2.0** (published 2023-03-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install neoxr-bot
pnpm add neoxr-bot
yarn add neoxr-bot
bun add neoxr-bot
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2023-03-19 |
| First published | 2023-03-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14.x |
| Dependencies | 34 |
| Unpacked size | 305.7 KB |
| Known vulnerabilities | 0 (+33 in 5 direct dependencies) |
| Install scripts | no |
| GitHub stars | 309 |
| Author | Wildan Izzudin |
| Maintainers | bellbot05 |
| Keywords | wabot-md |

## Links

- npm: https://www.npmjs.com/package/neoxr-bot
- Repository: https://github.com/neoxr/neoxr-bot
- Homepage: https://github.com/neoxr/neoxr-bot#readme
- Issues: https://github.com/neoxr/neoxr-bot/issues
- npm.io page: https://npm.io/package/neoxr-bot

## Dependencies (34)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [os](https://npm.io/package/os.md) ^0.1.2
- [pg](https://npm.io/package/pg.md) 8.7.3
- [got](https://npm.io/package/got.md) ^11.8.1
- [jimp](https://npm.io/package/jimp.md) ^0.16.1
- [path](https://npm.io/package/path.md) ~0.12.7
- [pino](https://npm.io/package/pino.md) ~7.0.5
- [util](https://npm.io/package/util.md) ~0.12.4
- [axios](https://npm.io/package/axios.md) ~0.24.0
- [chalk](https://npm.io/package/chalk.md) ~4.1.0
- [jsdom](https://npm.io/package/jsdom.md) 16.6.0
- [cfonts](https://npm.io/package/cfonts.md) ~2.10.0
- [colors](https://npm.io/package/colors.md) 1.4.0
- [crypto](https://npm.io/package/crypto.md) 1.0.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.1
- [cheerio](https://npm.io/package/cheerio.md) ~1.0.0-rc.5
- [usetube](https://npm.io/package/usetube.md) ^2.1.4
- [mongoose](https://npm.io/package/mongoose.md) 5.10.8
- [spinnies](https://npm.io/package/spinnies.md) ~0.5.1
- [file-type](https://npm.io/package/file-type.md) ~16.5.2
- [form-data](https://npm.io/package/form-data.md) ~4.0.0
- [mime-types](https://npm.io/package/mime-types.md) ~2.1.32
- [node-fetch](https://npm.io/package/node-fetch.md) 2.6.1
- [syntax-error](https://npm.io/package/syntax-error.md) ~1.4.0
- [child_process](https://npm.io/package/child_process.md) ~1.0.2
- [fluent-ffmpeg](https://npm.io/package/fluent-ffmpeg.md) ^2.1.2
- [html-entities](https://npm.io/package/html-entities.md) ~2.3.2
- [@colors/colors](https://npm.io/package/@colors/colors.md) 1.5.0
- [moment-timezone](https://npm.io/package/moment-timezone.md) ~0.5.34
- [qrcode-terminal](https://npm.io/package/qrcode-terminal.md) ^0.12.0
- [awesome-phonenumber](https://npm.io/package/awesome-phonenumber.md) ~2.59.0
- [@adiwajshing/baileys](https://npm.io/package/@adiwajshing/baileys.md) github:neoxr/Bails
- [wa-sticker-formatter](https://npm.io/package/wa-sticker-formatter.md) ^3.6.0
- [@adiwajshing/keyed-db](https://npm.io/package/@adiwajshing/keyed-db.md) 0.2.4

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.2.0 (latest) — 2023-03-19

## README

### 乂  Description

An automated system (WhatsApp Bot) that can help to do something, search and get data / information only through WhatsApp.

<p align="center">
<img width="" src="https://img.shields.io/github/repo-size/neoxr/neoxr-bot?color=green&label=Repo%20Size&style=for-the-badge&logo=appveyor">
</p>

> **NEW!** Implementation of my other project namely Github Database **[@neoxr/gitdb](https://github.com/neoxr/gitdb)** to see **[Click Here](https://github.com/neoxr/neoxr-bot/tree/gitdb)**

### 乂  Database Setup

This script can use 2 types of database types NoSQL and SQL, for NoSQL types using MongoDB and SQL using PostgreSQL. 

You can get free MongoDB database service at MongoDB Atlas while you can get PostgreSQL on Heroku and Railway.

#### 1. Heroku

If you want to get from heroku, register first and do this steps :

- Go to **add-ons** page
- Search **Heroku Posgress**
- Choose **Hobby Dev** and **ADD**
- Go to **Setting**
- Click **Config Variables**
- Then copy **DATABASE_URL** value
- Paste on **.env** file
- Done!

**Example :**
```.env
DATABASE_URL = 'postgres://nmxbabrmewzxmy:d9651df4c26df9d9fdc447be36cf32349ffc3acad641dd3fb72b2bd682ace017@ec2-63-34-180-86.eu-west-1.compute.amazonaws.com:5432/d9atreqoeau273g'
```

#### 2. Railway

Just like heroku must register first and do this steps :

- Create **New Project**
- Search **Provision PostgreSQL**
- Click **PostgreSQL** on your project
- Click **Variables**
- Click **Copy all**
- Paste on **.env** file
- Done!

**Example :**
```.env
DATABASE_URL = 'postgresql://postgres:mWdv7uNGHddW183m@containers-us-west-71.railway.app:6917/railway'
```

#### 3. MongoDB Atlas

Sorry, I can't write the tutorial here because it's a bit complicated so you can watch this **[Video](https://m.youtube.com/watch?v=4-fRVd1yzr0)**

**Example :**
```.env
DATABASE_URL = 'mongodb+srv://neoxrbot:yntkts@cluster0.kontol.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'
```

### 乂  Installation

```
$ git clone https://github.com/neoxr/neoxr-bot
```

And then type this on your console.
```
$ npm i
$ node . <session_name>
```

**NOTE :** 

1. Use node version **14.x** to avoid errors.
2. If you find an error you can create an issue on this repo, don't ask me on whatsapp it's very annoying.
3. This script is free and semi open source, you can get more apikey limit in **[Here](https://api.neoxr.my.id)**.

<p align="center"><img src="https://profile-counter.glitch.me/{neoxr}/count.svg" alt="neoxr :: Visitor's Count" /></p>

### 乂  License
Copyright (c) 2022 Neoxr . Licensed under the [GNU GPLv3](https://github.com/neoxr/neoxr-bot/blob/master/LICENSE)

---
_Source: https://npm.io/package/neoxr-bot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
