goat
command
fork
Fork Link
0
views
0
likes
0
installs
raw source
exports.config = {
name: "fork",
version: "1.0.0",
author: "EryXenX",
countDown: 0,
role: 0,
shortDescription: "Fork Link",
longDescription: "Responds with GitHub repo link when 'fork' or 'repository' is mentioned. Cooldown: 10 seconds.",
category: "system",
guide: {
en: "Type 'fork' or 'repository'"
}
};
const last = {};
const cool = 10000;
exports.onStart = async function(){};
exports.onChat = async function({event: z, api: y}){
const t = z.threadID;
const n = Date.now();
if(last[t] && n - last[t] < cool) return;
const m = (z.body || "").toLowerCase().trim();
if(!m) return;
const fork = m.includes("fork") || m.includes("repository");
if(fork){
y.sendMessage(
`๐๐๐ถ๐๐๐๐ฏ ๐๐ผ๐ฟ๐ธ ๐๐ถ๐ป๐ธ:
https://github.com/EryXenX/GoatBot-Pro.git
๐ฌ ๐ฆ๐ฒ๐๐๐ฝ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น๐๐ผ
https://youtu.be/gPf_BFhQz_w?si=T1N6sB2DefeTGq2R`,
t,
z.messageID
);
last[t] = n;
}
};