From 6966e2fea20ece36179715a977b41f232133496f Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 11 Jun 2009 21:12:08 +0000 Subject: iasd git-svn-id: http://xapek.org/svn/common/omegle@1124 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- megahal_bot.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/megahal_bot.py b/megahal_bot.py index b8e2d14..e29edf1 100644 --- a/megahal_bot.py +++ b/megahal_bot.py @@ -124,6 +124,24 @@ Argumente: AND NOT ( message ILIKE '%www.%' OR message ILIKE '%http%' OR message ILIKE '%@%.%');""", + "offensive-large": + """SELECT message FROM omegle_messages WHERE from_ident in ( + SELECT from_ident FROM omegle_messages + WHERE ( message ILIKE '%sex%' + OR message ILIKE '%boob%' + OR message ILIKE '%horny %' + OR message ILIKE '%pussy %' + OR message ILIKE '%ass %' + OR message ILIKE '%naked%' + OR message ILIKE '%fuck%' + OR message ILIKE '%pants %' + OR message ILIKE '%penis%' + OR LENGTH(message) < 7 AND CAST(RANDOM()*10 as integer)=1) + AND LENGTH(message) < 35 + AND NOT ( message ILIKE '%www.%' + OR message ILIKE '%http%' + OR message ILIKE '%@%.%') );""", + } sqlKey = "standard" dbname = "omegle" @@ -169,7 +187,7 @@ Argumente: logging.basicConfig(level=logging.DEBUG) if local: - print ">>> ", + print "CTRL-C\n>>> ", while True: x=sys.stdin.readline().strip() print "<<< %s\n>>> " % mh_python.doreply(x), -- cgit v1.2.1