Skip to content

rifnd/moon-bot

Repository files navigation

MOON BOT

This script is 100% free, which uses the api from AlyaChan-APIs

Group : Community

Requirements

  • Server vCPU/RAM 1/1GB (Min)
  • NodeJS
  • FFMPEG
  • WhatsApp
  • Apikey

Server

Note :

  • Do not use fake panels, usually have bocil JB, use trusted panels, there is a price there is quality
  • Jangan menggunakan panel abal abal, biasanya punya bocil JB, gunakanlah panel yang terpercaya, ada harga ada kualitas

Database

Configuration

There are 3 files that can be changed .env, config.json and config.js

DATABASE_URL = ''
API_ENDPOINT = 'https://api.alyachan.dev/'
API_KEY = 'yourkey'
{
   "owner": "6281252848955",
   "owner_name": "Contact Support",
   "limit": "10",
   "multiplier": "250",
   "min_reward": 5000,
   "max_reward": 20000,
   "ram_limit": "1.2GB",
   "max_upload": 150,
   "max_upload_free": 40,
   "timer": 120000,
   "timeout": 1800000,
   "evaluate_chars": ["=>", ">", "$", "~>", "!", "+", "/", "#", "."],
   "pairing": {
     "state": false,
     "number": 62000
   }
}
global.header = `moon-bot v${require('../../package.json').version}`
global.footer = Func.Styles('simple whatsapp bot made by moon')

For Heroku users

Install buildpack

For Windows / RDP users

  • Download and install Git here
  • Download and install NodeJS here
  • Download and install FFMPEG here
  • Download and install ImageMagick here

Installation & Run

$ bash install.sh
$ git clone https://github.com/rifnd/moon-bot
$ cd moon-bot
$ npm install
$ node .

Use PM2

$ pm2 start index.js --name "mybot"

Pairing Code

{
   "pairing": {
     "state": false, /** true to enable, false to disable */
     "number": 62000 /** here's the bot number */
   },
}

Plugins

Note :

  • Works with old and new plugins
  • Bisa untuk plugin lama dan plugin baru
module.exports = {
   help: ['display'],
   tags: ['category'],
   command: ['command'],
   run: async (m, {
      conn,
      usedPrefix,
      prefixes,
      command,
      args,
      text,
      body,
      plugins,
      Scraper,
      Func
   }) => {
      const raimu = require('jancok')
      console.log(raimu.asu)
   },
   limit: Boolean,
   premium: Boolean,
   group: Boolean,
   private: Boolean,
   owner: Boolean,
   admin: Boolean,
   botAdmin: Boolean,
   register: Boolean
}

Plugins Events

module.exports = {
   async before(m, {
      conn,
      Scraper,
      Func
   }) {
      try {
         const raimu = require('jancok')
         console.log(raimu.ancok)
      } catch (e) {
         console.log(e)
      }
      return true
   }
}

External Session

Install depedency

$ npm install session@github:neoxr/session#mongodb 

in main.js

const { useMongoAuthState } = require('session')
const conn = new Connection({
   directory: 'plugins',
   session: useMongoAuthState(process.env.DATABASE_URL, 'session'),
   online: false,
   browser: ['Ubuntu', 'Chrome', '20.0.04']
})

This script is still in development and will continue to be updated, keep an eye on this repository, don't forget to give stars and forks

Adios.....

About

Simple WhatsApp Bot use Baileys

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •