Skip to content

Instantly share code, notes, and snippets.

@treejadey
Last active November 28, 2025 15:27
Show Gist options
  • Select an option

  • Save treejadey/ee351d58ea1e3ba0bbfd04e63b4b6182 to your computer and use it in GitHub Desktop.

Select an option

Save treejadey/ee351d58ea1e3ba0bbfd04e63b4b6182 to your computer and use it in GitHub Desktop.
const main = async () => {
const cookie = await command.execute("cookie");
if ( cookie.success === false ) {
return "You don't seem to have any cookies, mind opening some cases meanwhile?";
}
const gameOptions = ["CS:GO aka CS2", "Team Fortress 2", "the Portal series", "the Half-Life series"];
const prompt = `Edit and change the following fortune cookie message to be thematic to the world of ${utils.randArray(gameOptions)}: ${cookie.reply}`;
const gptresponse = await command.execute("gpt", "history:ignore", prompt);
if ( gptresponse.success === false ) {
return `GabeN stole your cookie and ran away.. But he left this note: ${cookie.reply}`;
}
return gptresponse.reply;
}
@occluder
Copy link

Fix your code image

image

@treejadey
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment