summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-30 15:59:58 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-30 15:59:58 +0000
commita1ab6215edbaf492492fac5f2a1c560d16ec2978 (patch)
treef2bccc3f9870f3e224f7d1e62adaa898957c675c
parentafc808ccbb2ba0c74974283d6a7a85b25ce34e92 (diff)
downloadomegle-a1ab6215edbaf492492fac5f2a1c560d16ec2978.tar.gz
omegle-a1ab6215edbaf492492fac5f2a1c560d16ec2978.zip
bla
git-svn-id: http://xapek.org/svn/common/omegle@1056 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r--Documentation.txt49
-rw-r--r--omegle.py1
2 files changed, 35 insertions, 15 deletions
diff --git a/Documentation.txt b/Documentation.txt
index b598928..426e6d1 100644
--- a/Documentation.txt
+++ b/Documentation.txt
@@ -1,9 +1,19 @@
-====== Tools
-omegle.py - OmegleChat class and simple client
-chat.py - more advanced client
-proxy.py - connects two chats
-injector.py - same as above
- = do note abuse these tools, the following information =
+ __ __
+ /\ \__/\ \
+ _____ __ __\ \ ,_\ \ \___ ___ ___
+ /\ '__`\/\ \/\ \\ \ \/\ \ _ `\ / __`\ /' _ `\
+ \ \ \L\ \ \ \_\ \\ \ \_\ \ \ \ \/\ \L\ \/\ \/\ \
+ \ \ ,__/\/`____ \\ \__\\ \_\ \_\ \____/\ \_\ \_\
+ \ \ \/ `/___/> \\/__/ \/_/\/_/\/___/ \/_/\/_/
+ \ \_\ /\___/ ___ _ __ ___ ___ __ _| | ___
+ \/_/ \/__/ / _ \| '_ ` _ \ / _ \/ _` | |/ _ \
+ | (_) | | | | | | __/ (_| | | __/
+====== Tools \___/|_| |_| |_|\___|\__, |_|\___|
+ omegle.py - OmegleChat class and simple client |___/
+ chat.py - more advanced client
+ proxy.py - connects two chats
+ injector.py - same as above
+ = do note abuse these tools, the following information =
====== API Documentation
==== Connection
@@ -18,11 +28,23 @@ All API-Calls return JSON-Data. The Returncode for success is "win", the
errorcode is "fail".
==== Commands:
- O --> /count
- \|/ --> /start() <- id
- / \ --> /send(id,msg) <- "win"
- --> /disconect(id) <- "win"
- --> /events(id) <- "[[msg1],...]
+
+
+ dooooooooooooooooop
+ d8 OMEGLE 8b
+ d8_______________8b
+ `""""""";"""""""""'
+ dP8L |
+ 8P 8b |
+ ,._ `8odP _o. | /count
+ `"YYbood8dPP' | <-- Online Users
+ '`d8 | /start
+ d8 | <-- id
+ 88. | /disconnect -> "id"
+ ,8P`Yb. | <-- "win"||"fail"
+ ,8' `Y8 | /events -> "id"
+ | <-- [["type,...],...]
+ |
== /start - Start a conversation
URL: /start
@@ -76,7 +98,4 @@ METHOD: GET
PARAM: {}
RETURNS: 1234
- 1234 is the number of users online
-
-
-
+ 1234 is the number of users online \ No newline at end of file
diff --git a/omegle.py b/omegle.py
index 04e7a37..fd4caef 100644
--- a/omegle.py
+++ b/omegle.py
@@ -97,6 +97,7 @@ class OmegleChat(RESTClient):
if body == "win":
self.is_confirmed = False
self.id = None
+ self.conn.close()
else:
raise Exception("/disconnect; Bad response: %s" % body)