diff options
Diffstat (limited to 'megahal_bot.py')
-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), |