This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
kd8lvt's profile picture

[Possibly Unstable] Pastebin Updater API

Started by kd8lvt, 21 April 2015 - 01:38 PM
kd8lvt #1
Posted 21 April 2015 - 03:38 PM
Kd's Pastebin Updater!

—————————————————————




Hey! I was looking around on the forums (Not thoroughly, mind you) for an api or simmilar way to "automatically" update from pastebin. Not finding anything in my cursory search, I decided to make a quick API to update from pastebin! This sadly requires two pastebin programs, and you need to update a version list when you update your program, but, hey! I think it works. I sadly can not test it at this exact moment due to being on my laptop on vacation, and my laptop is really old, with 2GB of ram. I made this in Notepad++, and it took me about one hour. If you find any bugs PLEASE tell me! I don't want this to become abandoned!

Now for the juicy stuff ;)/>

Use

pastebin get QXYe1jVK updater
in the main console screen to download the api. Then all you need is to actually use it! You can read inside of the code, I have included (what I think is) extensive documentation on how the program works, and how to use it :)/> Again, if you find any bugs, please, please tell me, and if you can give me a crash report (the red text that shows up in the computer console) as well as a pastebin to your code so I can check out how you are using it / so I can check for typos ;)/>


An example for a version list is here: http://pastebin.com/HmZ3GzVv

Oh, and it (in theory) automatically deletes the version list after it grabs the version, so you shouldn't have a TON of random version list files clogging up your disk space. Yay!

Thanks for checking my little API out :D/>
~Kd
Edited on 21 April 2015 - 07:20 PM
Creator #2
Posted 21 April 2015 - 06:03 PM
This is really interesting ;)/>
kd8lvt #3
Posted 21 April 2015 - 09:19 PM
Thank you! It could probably be optimized a LOT, but it is a rather small API compared to some other ones out there :D/>
Creator #4
Posted 21 April 2015 - 09:27 PM
Everything has a beggining
biggest yikes #5
Posted 21 April 2015 - 09:44 PM
Everything has a beggining
beginning*
Creator #6
Posted 21 April 2015 - 09:53 PM
Thanks. However I have to say this: Wow, so much related to programing. (Grammar such well)