Coder Social home page Coder Social logo

panda560 / haruno-md Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fadlidarmawan/haruno-md

0.0 0.0 0.0 4.4 MB

Haruno, a multi device WhatsApp bot.

License: GNU General Public License v3.0

JavaScript 99.65% CSS 0.01% HTML 0.26% Dockerfile 0.08% Procfile 0.01%

haruno-md's Introduction

Haruno

Version 3.0 is Out!

Dont forget to read the changelog.

Group Official Haruno

Grup WhatsApp

Deploy to Heroku

Deploy

Donate and Support me

Donate me via Saweria!

FOR TERMUX USER

pkg update && pkg upgrade
pkg install git
pkg install nodejs
pkg install ffmpeg
pkg install imagemagick
pkg install yarn
git clone https://github.com/FadliDarmawan/haruno-md
cd haruno-md
yarn
npm i -g typescript
tsc -p ./node_modules/@adiwajshing/baileys
node .

FOR WINDOWS/VPS/RDP USER

  • Download And Install Git Click Here
  • Download And Install NodeJS Click Here
  • Download And Install FFmpeg Click Here (Don't Forget Add FFmpeg to PATH enviroment variables)
  • Download And Install ImageMagick Click Here
git clone https://github.com/FadliDarmawan/haruno-md
cd haruno-md
npm install
npm update
npm index

FOR HEROKU USER

Deploy

Installing buildpack

Connecting the Heroku Into Mogodb

Note: You dont have to connect your Haruno at Heroku into mongoDB, but Heroku doesn save your database.json and you will lose your bot data every time you restart or re-run the bot.

  • Create account and database in mongodb atlas watch here
  • when you already have a database, you just need to take mongourl
  • Put mongourl in Procfile web: node . --db 'mongourl'
  • Example web: node . -- db 'mongodb+srv://ilman:<password>@cluster0.iiede.mongodb.net/ShiraoriBOT?retryWrites=true&w=majority'

Run

node .

Arguments node . [--options] [<session name>]

--self

Activate self mode (Ignores other)

--pconly

If that chat not from private bot, bot will ignore

--gconly

If that chat not from group, bot will ignore

--swonly

If that chat not from status, bot will ignore

--prefix <prefixes>

  • prefixes are seperated by each character Set prefix

--server

Used for heroku or scan through website

--restrict

Enables restricted plugins (which can lead your number to be banned if used too often)

  • Group Administration add, kick

--img

Enable image inspector through terminal

--autoread

If enabled, all incoming messages will be marked as read

--autocleartmp

If enabled, *tmp folder contain files will be auto delete

--nyimak

No bot, just print received messages and add users to database

--test

Development Testing Mode


How To Customise Message Display

// Syntax
conn.sendButton(
      jid, // jid of the user to send the message to
      text, // text to send
      foooter, // footer to send
      buffer, // buffer to send (optional), if you want to send button image, location, etc
      buttons, // buttons to send, example [['text1', 'id1'], ['text2', 'id2']]
      quoted, // quoted message to send (optional)
      options // options to send, example { asLocation: true }
)

// example 
conn.sendButton(m.chat, 'Hello world!', '@BochilGaming', null, [
      ['Hello', 'hello'], ['Bye', 'bye']
])
// example button location
conn.sendButton(m.chat, 'Hello world!', '@BochilGaming', 'https://github.com/BochilGaming', 
      [['Hello', 'hello'], ['Bye', 'bye']], 
      null, { asLocation: true }
)

Nurutomo Istikmal Fadli
Nurutomo Istikmal Fadli
Penulis / Pencipta SC owner Pengembang ulang

haruno-md's People

Contributors

fadlidarmawan avatar panda560 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.