Skip to content

Instantly share code, notes, and snippets.

@treuks
Last active July 13, 2024 12:24
Show Gist options
  • Save treuks/ee351d58ea1e3ba0bbfd04e63b4b6182 to your computer and use it in GitHub Desktop.
Save treuks/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 has stole your cookie and ran away.. But he left this note: ${cookie.reply}`;
}
return gptresponse.reply;
}
@treuks
Copy link
Author

treuks commented Apr 14, 2023

ok

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