Git Product home page Git Product logo

sazumivicky / makemeow Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 32.47 MB

MakeMeow is a WhatsApp bot developed using Venom-Bot, a library that facilitates the usage of WhatsApp Web in bots. This bot is designed to provide additional functionality and ease of use for WhatsApp through automation and automated responses.

Home Page: https://sazumiviki.me

JavaScript 100.00%
bot-wa sazumiviki venom-bot wa-bot whatsapp whatsapp-bot makemeow

makemeow's Introduction

MakeMeow

MakeMeow is a WhatsApp bot developed using Venom-Bot, a library that facilitates the usage of WhatsApp Web in bots. This bot is designed to provide additional functionality and ease of use for WhatsApp through automation and automated responses.

The features available in MakeMeow include sending and receiving messages, managing contacts, executing custom commands, and much more. The bot is developed by Sazumi Viki and is version 1.0.0.

This repository contains the source code and plugins used in MakeMeow. By utilizing Venom-Bot, this bot can interact with WhatsApp users automatically and perform predetermined tasks.

If you're interested in developing or using a reliable and user-friendly WhatsApp bot, MakeMeow can be an excellent choice. Enjoy the convenience and functionality of WhatsApp through this bot!

Note: This description is just an example and can be adjusted according to the actual needs and features of the MakeMeow bot.

main.js

  • imports the Venom-Bot module, which is a library for easier usage of WhatsApp Web in bots.
const venom = require('venom-bot');

  • imports the dotenv module, used for setting environment variables from the .env file.
require('dotenv').config();

  • imports the fs (file system) module, used for reading directories and files.
const fs = require('fs');

  • imports the path module, used for constructing file paths.
const path = require('path');

  • creates a WhatsApp session using Venom-Bot with the session name 'sessionName'. You can replace 'sessionName' with your desired session name.
venom.create('sessionName')

  • is the function executed after the WhatsApp session is successfully created.
  • Console.log statements display information about the bot, such as the developer, version, and contact details.
start(client)

  • function is used to import the available plugins from the 'plugins' directory.
  • The plugins are dynamically loaded using require(pluginPath)(client), where pluginPath is the full path to the plugin and client is the WhatsApp client object provided by Venom-Bot.
importPlugins()

  • exports the WhatsApp client object, allowing other parts of the code to access and use it.
module.exports.client = venom.client;

index.js

const { client } = require('./main');
const path = require('path');

client.onMessage((message) => {
  console.log('Received message:', message.body);
});

const runtimePlugin = require('./plugins/runtime');

runtimePlugin(client);

  • imports the client object from the 'main' module. It assumes that there is a file named 'main.js' or 'main.js' in the same directory as the current file.
const { client } = require('./main');

  • ets up an event listener for incoming messages. When a new message is received, the callback function is executed, and the received message's body is logged to the console using console.log().
client.onMessage((message) => { ... });

  • imports the 'runtime' plugin from the 'plugins' directory, assuming that there is a file named 'runtime.js' or 'runtime.js' in that directory.
const runtimePlugin = require('./plugins/runtime');

  • invokes the 'runtimePlugin' function and passes the WhatsApp client object as an argument. This allows the plugin to interact with the client and perform its designated tasks
runtimePlugin(client);

instalation

  1. Clone or download this repository
https://github.com/SazumiVicky/MakeMeow.git
  1. Install the required modules
npm install
  1. And run the script
node main

Contributor

makemeow's People

Contributors

dependabot[bot] avatar sazumivicky avatar

Watchers

 avatar

Forkers

makemeow yuya248

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.