Skip to content

rifnd/moon-bot

Repository files navigation

MOON-BOT

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

To install this script you need

  • Server vCPU/RAM 1/1GB (Min)
  • NodeJS
  • FFMPEG
  • WhatsApp
  • Apikey (buy at api.alyachan.dev/pricing)

Creator / Group : Nando / Community

Set in config.js

/** enter owner number */
global.owner = ['6281252848955']
/** https://api.alyachan.pro/pricing */
global.APIs = {
  alya: 'https://api.alyachan.dev'
}
global.APIKeys = {
  'https://api.alyachan.dev': 'yourkey'
}
/** option setting */
global.set = {
  wm: `© moon-bot v${require('./package.json').version}`,
  footer: 'ꜱɪᴍᴘʟᴇ ᴡʜᴀᴛꜱᴀᴘᴘ ʙᴏᴛ ᴍᴀᴅᴇ ʙʏ ᴍᴏᴏɴ',
  packname: 'Sticker By',
  author: 'moon-bot'
}
/** enter your bot number to login using the code */
global.pairingNumber = 6283867587556
/** enter your replit link, so it's active 24/7 */
global.replit_url = ''
/** the bigger it gets the harder it is to level up */
global.multiplier = 1000
/** maximum limit to send files */
global.max_upload = 70
/** maximum 2GB ram, do the math yourself */
global.ram_usage = 2100000000

Plugins

let handler = async(m, {
  conn,
  usedPrefix,
  command,
  args,
  text,
  users,
  isOwner,
  isPrem
}) => {
  try {
    // Create your imagination
  } catch {
    console.log(e)
    return conn.reply(m.chat, Func.jsonFormat(e), m)
  }
}
handler.help = ['command'] // display in the menu
handler.tags = ['category'] // category
handler.command = /^(command)$/i // command
handler.group = Boolean // for group
handler.limit = Boolean // use limit
handler.game = Boolean // game mode
handler.rpg = Boolean // rpg mode
handler.owner = Boolean // for owner
handler.admin = Boolean // for admin
handler.botAdmin = Boolean // bot must be an admin
handler.premium = Boolean // premium only
handler.private = Boolean // private chat only

Plugins Event

let handler = (m) => m
handler.before = async (m, {
  conn
}) {
  try {
    // Create your imagination
  } catch (error) {
    console.log(error)
  }
  return !0
}
module.exports = handler

Install and run

$ npm install
$ npm start

Install & Run use PM2

$ npm install pm2 -g
$ npm install
$ pm2 start index.js && pm2 save && pm2 logs

Argument node . [--options]

  • node . --pairing : For those of you who login using a code, use this command in the terminal
  • node . --db 'mongodb uri' : If you want to connect the database to mongodb use this command
  • node . --server : if you want to use replit

Thanks To

Nurutomo Nando Alya Neoxr
ALYACHAN Nurutomo Nando Alya Neoxr
APIs Provider Author / Creator Decoder Support System All Functions