Posted 07 December 2012 - 08:52 AM
Hi!
I would think it would be nice if you just randomly connected to a person when you wanted to
and was just thinking is it possible to make Chatrouette based chat in CC?
Here is a little of the code i was thinking of.
But what im wondering is how to check if the ID is active and not idle.
I would think it would be nice if you just randomly connected to a person when you wanted to
and was just thinking is it possible to make Chatrouette based chat in CC?
Here is a little of the code i was thinking of.
id = math.random(0,100)
write("Would You Like To Connect To Someone? Yes/No:")
answ = read()
if answ == "Yes" or answ == "yes" then
checkID(id) --Check Id would be the function thats checks if it Active
if id == true then
term.clear()
term.setCursorPos(1,1)
print("Connecting to"..id)
sleep(1)
connect(id) --This function would ofcourse connect to the ID
elseif answ == "No" or answ == "no" then
os.reboot()
end
end
But what im wondering is how to check if the ID is active and not idle.