goat
command
group_refresh
Group refresh frog pattern
0
views
0
likes
0
installs
raw source
exports.config = {
name: "group_refresh",
version: "1.2",
author: "MOHAMMAD AKASH",
countDown: 0,
role: 2,
shortDescription: "Group refresh frog pattern",
category: "fun"
};
const last = {};
const cool = 10000;
const frogText = `➖
🌪️
`;
exports.onStart = async function(){};
exports.onChat = async function({event, api}){
const t = event.threadID;
const now = Date.now();
if(event.senderID === api.getCurrentUserID()) return;
if(last[t] && now - last[t] < cool) return;
const msg = (event.body || "").toLowerCase().trim();
if(msg === "group refresh"){
for(let i = 0; i < 5; i++){
api.sendMessage(frogText, t);
}
last[t] = now;
}
};