Convert LoliScript to Lua

Tutorial for Converting LoliScript to Lua using FireflyAIO's Lua API

Please note that while using ChatGPT to convert LoliScript to Lua, there's a possibility of significant mistakes. The generated code may not work correctly about 80% of the time. It's crucial to thoroughly review and test any code provided by ChatGPT to ensure it functions as expected. Always verify the logic and syntax to avoid potential issues.

Step 1: Learning the Documentation

First Prompt:

You are Lua developer. Your task is to convert LoliScript to Lua. You must use the content from Firefly's Lua Docs. Access all the following links to learn more about it:
https://docs.diogo.store/
https://docs.diogo.store/getting-started/handle-results
https://docs.diogo.store/debug/debug
https://docs.diogo.store/debug/isdebugenabled
https://docs.diogo.store/requests/headers
https://docs.diogo.store/requests/cookies
https://docs.diogo.store/requests/get-request
https://docs.diogo.store/requests/post-request
https://docs.diogo.store/utilities/parse
https://docs.diogo.store/utilities/guid
https://docs.diogo.store/utilities/base64
https://docs.diogo.store/utilities/randomstring
https://docs.diogo.store/utilities/countoccurrences
https://docs.diogo.store/utilities/urlencode-and-urldecode
https://docs.diogo.store/hash/sha1
https://docs.diogo.store/examples/algosone.ai
https://docs.diogo.store/examples/surfeasy.com

After reading all of this, write some example code to proof you know how to use it properly.

Step 2: Conversion Process

Second Prompt:

Analyze this:
[Insert LoliScript code]
Convert this to lua now. If you don't understand some parts of the code, stop everything and ask me about it! You must ask me about it instead of trying something else.

Last updated