{"id":26613719,"url":"https://github.com/rizxyu/rain-botv2","last_synced_at":"2025-04-10T03:22:04.195Z","repository":{"id":39638657,"uuid":"495735833","full_name":"rizxyu/Rain-BotV2","owner":"rizxyu","description":"Whatsapp bot with ESM","archived":false,"fork":false,"pushed_at":"2022-10-16T00:18:16.000Z","size":7422,"stargazers_count":17,"open_issues_count":2,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T04:42:35.526Z","etag":null,"topics":["bot","termux"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rizxyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-24T08:32:31.000Z","updated_at":"2024-08-16T01:51:57.000Z","dependencies_parsed_at":"2023-01-19T18:03:39.011Z","dependency_job_id":null,"html_url":"https://github.com/rizxyu/Rain-BotV2","commit_stats":null,"previous_names":["rizxyu/rain-botv2","carlxjoe/rain-botv2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizxyu%2FRain-BotV2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizxyu%2FRain-BotV2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizxyu%2FRain-BotV2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizxyu%2FRain-BotV2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rizxyu","download_url":"https://codeload.github.com/rizxyu/Rain-BotV2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148708,"owners_count":21055639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","termux"],"created_at":"2025-03-24T04:37:27.110Z","updated_at":"2025-04-10T03:22:04.129Z","avatar_url":"https://github.com/rizxyu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rain-BotV2\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTrF6fyFoGCHmsmOXWjFxIXh-467D1nRhA4mQ\u0026usqp=CAU\" width=\"75%\" style=\"margin-left: auto;margin-right: auto;display: block;\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#\"\u003e\u003cimg title=\"RAIN - BOTV2\" src=\"https://img.shields.io/badge/Rainbotv2-green?colorA=%23ff0000\u0026colorB=%23017e40\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/Rizxyu\"\u003e\u003cimg title=\"Rizxyu\" src=\"https://img.shields.io/badge/Author-Rizky-red.svg?style=for-the-badge\u0026logo=github\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/Rizxyu/followers\"\u003e\u003cimg title=\"Followers\" src=\"https://img.shields.io/github/followers/Rizxyu?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Rizxyu/Rain-BotV2/stargazers\"\u003e\u003cimg title=\"Stars\" src=\"https://img.shields.io/github/stars/Rizxyu/Rain-BotV2?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Rizxyu/Rain-BotV2/network/members\"\u003e\u003cimg title=\"Forks\" src=\"https://img.shields.io/github/forks/Rizxyu/Rain-BotV2?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Rizxyu/Rain-BotV2/watchers\"\u003e\u003cimg title=\"watchers\" src=\"https://img.shields.io/github/watchers/Rizxyu/Rain-BotV2?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n#### Join Group\n[![Group Bot](https://img.shields.io/badge/WhatsApp%20Group-25D366?style=for-the-badge\u0026logo=whatsapp\u0026logoColor=white)](https://chat.whatsapp.com/ITjd9jsIfBAK5byfdb2cxj)\n\n#### ONLY RUN RAILWAY\n[`railway.app`](https://railway.app/new/github)\n\n#### Deploy to Heroku\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/BochilGaming/games-wabot)\n\n#### ✍️ Editing the file\n\nEdit the required value in [`config.js`](https://github.com/Rizxyu/Rain-BotV2/blob/main/config.js)\n\n#### Heroku Buildpack\n| BuildPack | LINK |\n|--------|--------|\n| **FFMPEG** |[here](https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest) |\n| **IMAGEMAGICK** | [here](https://github.com/DuckyTeam/heroku-buildpack-imagemagick) |\n---------\n\n#### Note\n```sh\nnot for termux\n```\n\n### FOR TERMUX USER\n1. Type mentioned below given commands one by one in Termux.\n```sh\n$ pkg upgrade \u0026\u0026 pkg update\n$ pkg install git -y\n$ pkg install nodejs -y\n$ pkg install ffmpeg -y\n$ pkg install imagemagick -y\n$ git clone https://github.com/Rizxyu/Rain-BotV2\n$ cd Rain-BotV2\n$ npm i \n```\n\n```sh\n$ node .\n```\n2. Wait for bot starting...\n3. Scan QR code from 2nd device. (Go to whatsapp \u003e Linked Devices \u003e Join `Multi Device Beta` \u003e Click on `link device`)\n4. Now your bot is ready to rock n roll.\n\n#### If npm install failed, try using yarn instead of npm\n```sh\n$ pkg install yarn -y\n$ yarn install\n```\n---------\n## INSTALL ON TERMUX WITH UBUNTU\n\n[ INSTALLING UBUNTU ]\n\n```bash\napt update \u0026\u0026 apt full-upgrade\napt install wget curl git proot-distro\nproot-distro install ubuntu\necho \"proot-distro login ubuntu\" \u003e $PREFIX/bin/ubuntu\nchmod +x $PREFIX/bin/ubuntu\nubuntu\n```\n---------\n\n[ INSTALLING REQUIRED PACKAGES ]\n\n```bash\nubuntu\napt update \u0026\u0026 apt full-upgrade\napt install wget curl git ffmpeg imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev dbus-x11 ffmpeg2theora ffmpegfs ffmpegthumbnailer ffmpegthumbnailer-dbg ffmpegthumbs libavcodec-dev libavcodec-extra libavcodec-extra58 libavdevice-dev libavdevice58 libavfilter-dev libavfilter-extra libavfilter-extra7 libavformat-dev libavformat58 libavifile-0.7-bin libavifile-0.7-common libavifile-0.7c2 libavresample-dev libavresample4 libavutil-dev libavutil56 libpostproc-dev libpostproc55 graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat groff imagemagick-6.q16hdri imagemagick-common libchart-gnuplot-perl libgraphics-magick-perl libgraphicsmagick++-q16-12 libgraphicsmagick++1-dev\n```\n\n---------\n\n[ INSTALLING NODEJS \u0026 Rain-BotV2 ]\n\n```bash\nubuntu\ncurl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -\napt install -y nodejs gcc g++ make\ngit clone https://github.com/Rizxyu/Rain-BotV2\ncd Rain-BotV2\nnpm install\nnpm update\n```\n\n---------\n\n## FOR WINDOWS/VPS/RDP USER\n\n* Download And Install Git [`Click Here`](https://git-scm.com/downloads)\n* Download And Install NodeJS [`Click Here`](https://nodejs.org/en/download)\n* Download And Install FFmpeg [`Click Here`](https://ffmpeg.org/download.html) (**Don't Forget Add FFmpeg to PATH enviroment variables**)\n* Download And Install ImageMagick [`Click Here`](https://imagemagick.org/script/download.php)\n\n```bash\ngit clone https://github.com/Rizxyu/Rain-BotV2\ncd Rain-BotV2\nnpm install\nnpm update\n```\n\n---------\n\n## Run\n\n```bash\nnode .\n```\n\n---------\n\n## Arguments `node . [--options] [\u003csession name\u003e]`\n\n### `--self`\n\nActivate self mode (Ignores other)\n\n### `--pconly`\n\nIf that chat not from private bot, bot will ignore\n\n### `--gconly`\n\nIf that chat not from group, bot will ignore\n\n### `--swonly`\n\nIf that chat not from status, bot will ignore\n\n### `--prefix \u003cprefixes\u003e`\n\n* `prefixes` are seperated by each character\nSet prefix\n\n### `--server`\n\nUsed for [heroku](https://heroku.com/) or scan through website\n\n### `--restrict`\n\nEnables restricted plugins (which can lead your number to be **banned** if used too often)\n\n* Group Administration `add, kick`\n\n### `--img`\n\nEnable image inspector through terminal\n\n### `--autoread`\n\nIf enabled, all incoming messages will be marked as read\n\n### `--autocleartmp`\n\nIf enabled, **tmp* folder contain files will be auto delete\n\n### `--nyimak`\n\nNo bot, just print received messages and add users to database\n\n### `--test`\n\n**Development** Testing Mode\n\n---------\n\n## How To Customise Message Display\n```js\n// Syntax\nconn.sendButton(\n      jid, // jid of the user to send the message to\n      text, // text to send\n      foooter, // footer to send\n      buffer, // buffer to send (optional), if you want to send button image, location, etc\n      buttons, // buttons to send, example [['text1', 'id1'], ['text2', 'id2']]\n      quoted, // quoted message to send (optional)\n      options // options to send, example { asLocation: true }\n)\n\n// example \nconn.sendButton(m.chat, 'Hello world!', '@BochilGaming', null, [\n      ['Hello', 'hello'], ['Bye', 'bye']\n])\n// example button location\nconn.sendButton(m.chat, 'Hello world!', '@BochilGaming', 'https://github.com/BochilGaming', \n      [['Hello', 'hello'], ['Bye', 'bye']], \n      null, { asLocation: true }\n)\n```\n---------\n\n### want to contribute?\n1. fork this repository\n2. Change/edit/create what you want. for example you can add features, fix bug, etc\n3. **test** before making a pull req!!\n4. make a pull req!\n5. if your pull req is already in **acc/merge**, you can delete your branch or you can create pull req again :)\n\n---------\n\n\n### Thanks To \n**Allah SWT**,\n\n**Orang Tua**,\n\n**Semua yang selalu mendukung**\n\n\n#### Special Thanks to\n[![Nurutomo](https://github.com/Nurutomo.png?size=100)](https://github.com/Nurutomo)\n[![BochilGaming](https://github.com/BochilGaming.png?size=100)](https://github.com/BochilGaming)\n[![Rizxyu](https://github.com/Rizxyu.png?size=100)](https://github.com/Rizxyu)\n[![ibrahKrep](https://github.com/ibrahKrep.png?size=100)](https://github.com/ibrahKrep)\n[![MuhammadRestu999](https://github.com/MuhammadRestu999.png?size=100)](https://github.com/MuhammadRestu999)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizxyu%2Frain-botv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frizxyu%2Frain-botv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizxyu%2Frain-botv2/lists"}