diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-11 21:04:05 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-11 21:04:05 +0000 |
commit | ed3c1a6c15c4c36d308cc931b14946c4a26cf508 (patch) | |
tree | a020b8689f034ea15eb55f53ffae72775384813c | |
parent | bcbd91805a9a2ea27772e404d421234e59841e19 (diff) | |
download | omegle-ed3c1a6c15c4c36d308cc931b14946c4a26cf508.tar.gz omegle-ed3c1a6c15c4c36d308cc931b14946c4a26cf508.zip |
bla
git-svn-id: http://xapek.org/svn/common/omegle@1122 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r-- | megahal_bot.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/megahal_bot.py b/megahal_bot.py index 20fe7aa..d481dae 100644 --- a/megahal_bot.py +++ b/megahal_bot.py @@ -137,7 +137,12 @@ Argumente: elif o == "--host": host = a elif o == "--profile": - sqlKey = a + if sql.has_key(a): + sqlKey = a + print sql[a] + else: + print "Profile %s does not exist, create it!" % a + sys.exit(0) mh_python.initbrain() @@ -162,10 +167,10 @@ Argumente: logging.basicConfig(level=logging.DEBUG) if local: - print ">>>", + print ">>> ", while True: x=sys.stdin.readline().strip() - print "<<< %s\n>>>" % mh_python.doreply(x), + print "<<< %s\n>>> " % mh_python.doreply(x), else: print "press ctrl-c to abort" event = Event() |