Last active
July 13, 2024 12:24
-
-
Save treuks/ee351d58ea1e3ba0bbfd04e63b4b6182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok