Xaymar

ComputerCraft GitHub Gist Integration

Jul 17th, 2024 (edited)
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | Software | 0 0
  1. -- pastebin get rLAZsh4n gist
  2. -- gist
  3. print("Installing gist integration..."); io.output(io.open("gist", "w+b")); io.write(http.get(textutils.unserializeJSON(http.get("https://api.github.com/gists/2f56b34e2a8d695a08dadaba21d82ae1", { "Accept: application/vnd.github+json" }).readAll()).files["gist.lua"].raw_url).readAll()); io.close(); io.output(io.stdout); print("Done. You can now use the 'gist' command, or use 'edit gist' for a manual.")
Advertisement
Add Comment
Please, Sign In to add comment