Skip to content

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.

Notifications You must be signed in to change notification settings

SazumiVicky/MakeMeow

Repository files navigation

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

About

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.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published