From ed3c1a6c15c4c36d308cc931b14946c4a26cf508 Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 11 Jun 2009 21:04:05 +0000 Subject: bla git-svn-id: http://xapek.org/svn/common/omegle@1122 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- megahal_bot.py | 11 ++++++++--- 1 file 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() -- cgit v1.2.1