Bot.js script for Chattbot
May 15, 2023
0
const fs = global.nodemodule["fs-extra"];
module.exports.config = {
name: "bot",
version: "1.0.1",
hasPermssion: 0,
credits: "Mr Chand",
description: "goibot",
commandCategory: "Noprefix",
usages: "noprefix",
cooldowns: 5,
};
module.exports.handleEvent = async function({ api, event, args, Threads, Users }) {
var { threadID, messageID, reason } = event;
const moment = require("moment-timezone");
const time = moment.tz("Asia/Manila").format("HH:MM:ss L");
var idgr = `${event.threadID}`;
var id = event.senderID;
var name = await Users.getNameUser(event.senderID);
var tl = ["haiy ma sadky jawa teri masoom shaqal py 😂 chabal insan", "Bot nah bol oye ! Janu bol mjhy aur janu sy piyar sy bat kerty hai , rat ko kahan thy nazar nahi ay hawali py 😂", "Shaqal Sy masoom lgty ho 😂 btao kahi Ap ka ghar doup main to nahi", "kash tum single hoty to maza hi koch aur tha pagal insane 😂", "Ha ha ab meri yaad ab ai nah phly to babu shona kerna gy thy 😾 ab ham ap sy naraz hai jao ap bye ☹️", "haiy babu ny boliya hai shaid purpose kerna hai mjhy bolo bolo babu 😘", "Ary ghreeb awam roti banana ky liya athy main Pani ko istamal kerty ho 😂", "Ary chabli nah mar joh kam hai bol do sharma nahi , bol de koi nahi dakh rha 😂", "Hy Ma Mar Jawa Babu Ak Chuma To Doo Kafi Din Sy Chumi Nahi Mili Kahan Thy Babu inbox Ah Ja 😂", "Dur Dur Fity Muh Aur Koi Kam Nahi Kiya Har Waqat Mjhy Tang Kerta Rhta Ha 😂" , "ary ary bolo meri jaan kia hail hai ;) ;* " , "Tum aunty ho yehh uncle 🤔 I think tum Jin ho yehh Chudail" , "ary tum ider 🤔 khair hai ider kia ker rhy ho 😂" , "ary babu babu kal hawali py kon bola rha tha 😂" , "ma ap ki ami ko btaou ga ap Facebook use kerty ho 😂" , "ary tum Wohi ho nah jis ko ma nahi janta 😂" , "kal hawali py mil zara bataou ga 😂" , "esy nah dakho piyar ho jay ga 😂" , "Teri pic dakhna sy phly shukhr hai ma anda hu 😂" , "esy hi hansty rhao kyu ky hnsa sy konsa tera bill ah jata hai 😂"];
var rand = tl[Math.floor(Math.random() * tl.length)]
mess = "{name}"
if (event.body.indexOf("Bot") == 0 || (event.body.indexOf("bot") == 0)) {
var msg = {
body: `${name}, ${rand}`
}
return api.sendMessage(msg, threadID, messageID);
};
}
module.exports.run = function({ api, event, client, __GLOBAL }) { }