mirror of
https://github.com/kepler155c/opus
synced 2024-11-10 18:59:55 +00:00
16 lines
707 B
Plaintext
16 lines
707 B
Plaintext
pastebin is a program for uploading files to and downloading files from pastebin.com. This is useful for sharing programs with other players.
|
|
The HTTP API must be enabled in ComputerCraft.cfg to use this program.
|
|
|
|
ex:
|
|
"pastebin put foo" will upload the file "foo" to pastebin.com, and print the URL.
|
|
"pastebin get xq5gc7LB foo" will download the file from the URL http://pastebin.com/xq5gc7LB, and save it as "foo".
|
|
"pastebin run CxaWmPrX" will download the file from the URL http://pastebin.com/CxaWmPrX, and immediately run it.
|
|
|
|
Functions in the pastebin API:
|
|
pastebin.get( code, filepath )
|
|
pastebin.put( filepath )
|
|
pastebin.download( code )
|
|
pastebin.upload( pastename, text )
|
|
pastebin.parseCode( code )
|
|
|