This script is 100% free, which uses the api from AlyaChan-APIs
Group : Community
- Server vCPU/RAM 1/1GB (Min)
- NodeJS
- FFMPEG
- Apikey
- Heroku (Recommended)
- VPS/RDP DigitalOcean
- VPS NAT HostData
- Panel Optiklink
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
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')
Install buildpack
- Heroku/Nodejs
- https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
- https://github.com/DuckyTeam/heroku-buildpack-imagemagick.git
- Download and install Git here
- Download and install NodeJS here
- Download and install FFMPEG here
- Download and install ImageMagick here
$ bash install.sh
$ git clone https://github.com/rifnd/moon-bot
$ cd moon-bot
$ npm install
$ node .
$ pm2 start index.js --name "mybot"
{
"pairing": {
"state": false, /** true to enable, false to disable */
"number": 62000 /** here's the bot number */
},
}
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
}
module.exports = {
async before(m, {
conn,
Scraper,
Func
}) {
try {
const raimu = require('jancok')
console.log(raimu.ancok)
} catch (e) {
console.log(e)
}
return true
}
}
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.....