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

Im having trouble

Started by James20256, 26 February 2016 - 10:30 PM
James20256 #1
Posted 26 February 2016 - 11:30 PM
Ok im having trouble finding the place to put the api can someone help me?

where do i put the api i have downloaded people say there is a file
Dragon53535 #2
Posted 27 February 2016 - 01:31 AM
Which api?

Edit: Now that I think about it, i'm assuming you're meaning you downloaded a file onto your computer for your single player world.

Simple search picked up this post from 2012
Edited on 27 February 2016 - 12:36 AM
HPWebcamAble #3
Posted 27 February 2016 - 07:43 AM
Usually, APIs and programs go in the root directory.

For a program on pastebin, you'd run this command in a computer:

pastebin get <pastebin code> <file path>
Replacing <pastebin code> and <file path> with the appropriate values, of course.
Simply putting a name for <file path> automatically puts in the root directory.

If you give us a link to the program and API, we can give you more specific commands.
James20256 #4
Posted 27 February 2016 - 03:45 PM
where do i put the api i have downloaded people say there is a file

a cleverbot api

like in this video
https://www.youtube....h?v=uTpIcZnUBKM
i have the paste bin but i need api for chat and speaker i think

this is the cleverbot pastebin site
http://www.computerc...lua-up-to-date/
HPWebcamAble #5
Posted 27 February 2016 - 10:33 PM
this is the cleverbot pastebin site
http://www.computerc...lua-up-to-date/

That program is a bit unique; it's a program that you can run, and also an API that can be loaded and used in another program.
Most APIs won't do anything if you run them.

If you want to use it like a program, run these commands:

> pastebin get Dv9x1ppc cleverbot
> cleverbot

Or, if you want to use it in one of your programs:
Download it, with the same pastebin command.
Add os.loadAPI("cleverbot") into your program. The post you linked has a small example on how to use it.
Edited on 27 February 2016 - 09:34 PM