← back to browse
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;
  }
};

View raw file