const fs = require("fs");
module.exports.config = {
name: "bye",
version: "1.0.1",
hasPermssion: 0,
credits: "MR CHAND",
description: "no prefix",
commandCategory: "No command marks needed",
usages: "...",
cooldowns: 1,
};
module.exports.handleEvent = function({ api, event, client, __GLOBAL }) {
var { threadID, messageID } = event;
if (event.body.indexOf("bye")==0 || (event.body.indexOf("Bye")==0 || (event.body.indexOf("BYE")==0 || (event.body.indexOf("Allah hafiz")==0)))) {
var msg = {
body: "𝐁𝐘𝐞 , 𝐀𝐥𝐥𝐚𝐡 𝐇𝐚𝐟𝐢𝐳 𝐁𝐚𝐛𝐮 ",
attachment: fs.createReadStream(__dirname + `/noprefix/bye.gif`)
}
api.sendMessage(msg, threadID, messageID);
}
}
module.exports.run = function({ api, event, client, __GLOBAL }) {
}