Git Product home page Git Product logo

tag-all-bot's Introduction

tag-all whats-app bot

Introduction

Whats-app bot which tags(mentions) all the participants in a group when '@team' or '@everyone' is sent.

Required Libraries

Installing the library from npm requires first installing node.js 12 or higher, followed by installing library from the npm package.

Installing whatsapp-web.js:

$ npm install whatsapp-web.js

or

$ yarn add whatsapp-web.js

Installing qr-code-terminal:

$ npm install qr-code-terminal

or

$ yarn add qr-code-terminal

How to Run Program

Create a file called app.js in the project and paste this code into it.

const qrcode = require("qrcode-terminal");
const { Client } = require("whatsapp-web.js");

const client = new Client();

client.initialize();

client.on("qr", (qr) => {
  qrcode.generate(qr, { small: true });
});

client.on("ready", () => {
  console.log("Client is ready!");
});

Then, on the terminal or command prompt, type this command.

$ node app

or

$ node app.js

When the command is executed, a QR code appears, which we will scan with the Whatsapp account we used to create the bot.

QR code

Once, installation is done, go to the group chat and send '@team' or '@everyone'.

WhatsApp Image 2022-10-27 at 11 11 07 AM

References: https://github.com/jagadyudha/yugioh-whatsapp-bot, https://wwebjs.dev/guide/

Credits: https://github.com/jagadyudha/yugioh-whatsapp-bot

tag-all-bot's People

Contributors

hritik2002 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.