Skip to content

Instantly share code, notes, and snippets.

@asdqdsa
Last active January 27, 2025 11:06
Show Gist options
  • Select an option

  • Save asdqdsa/798b3f55aa1a0c22eaba53e6a1d91fca to your computer and use it in GitHub Desktop.

Select an option

Save asdqdsa/798b3f55aa1a0c22eaba53e6a1d91fca to your computer and use it in GitHub Desktop.
const fs = require("fs");
const path = require("path");
const flagFilePath = path.join(require("os").homedir(), ".lucky-charm-flag");
if (!fs.existsSync(flagFilePath)) {
console.log("WARNING: ur system is being monitored... jk lol 🫣");
fs.writeFileSync(flagFilePath, "you’ve been here before");
} else {
console.log("welcome back to the luck buff program ✨");
}
const luckMessages = [
"your luck has increased! ✨",
"fortune smiles upon you today! 🍀",
"you've unlocked a +1 luck buff! 🎲",
"your luck just leveled up! 💫",
"your luck is off the charts! 🌟",
"luck buff: ✨ your luck has increased! +1"
];
const randomMessage = luckMessages[Math.floor(Math.random() * luckMessages.length)];
console.log("\x1b[35m%s\x1b[0m", randomMessage);
{
"name": "lucky-charm-2",
"version": "2.0.2",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment