diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-11 21:12:08 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-11 21:12:08 +0000 |
commit | 6966e2fea20ece36179715a977b41f232133496f (patch) | |
tree | f575ef47dd119f0dcfc815cb792a26d4ea87f393 | |
parent | 9ab3f4b8c19964c9756d572fe26f46ca49ae6c72 (diff) | |
download | omegle-6966e2fea20ece36179715a977b41f232133496f.tar.gz omegle-6966e2fea20ece36179715a977b41f232133496f.zip |
iasd
git-svn-id: http://xapek.org/svn/common/omegle@1124 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r-- | megahal_bot.py | 20 |
1 files changed, 19 insertions, 1 deletions
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), |