Last active
May 25, 2025 13:23
-
-
Save bastienvoirin/e4cfb69b21fd3fd42bc9fa0b644fb02a to your computer and use it in GitHub Desktop.
ComputerCraft - Auto update function using Pastebin API - 1.0.0
This file contains hidden or 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
| function update() | |
| term.setCursorPos( 1, -5 ) -- Hide the pastebin retrivial | |
| shell.run( "rm", shell.getRunningProgram() ) -- Delete the current program | |
| shell.run( "pastebin", "get", "PASTEBIN CODE", shell.getRunningProgram() ) -- Update it | |
| shell.run( shell.getRunningProgram() ) -- Restart it | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment