Exemplo n.º 1
0
def autoReply(lp):
    reply = "I am the auto replier, please wait..."
    reply_key = fqterm.getReplyKey(lp)
    if (reply_key == ''):
        fqterm.sendParsedString(lp, "^Z")
    else:
        fqterm.sendParsedString(lp, reply_key)
    fqterm.sendString(lp, reply)
    fqterm.sendParsedString(lp, "^M")
Exemplo n.º 2
0
def autoReply(lp):
	reply = "I am the auto replier, please wait..."
	reply_key = fqterm.getReplyKey(lp)
	if(reply_key==''):
		fqterm.sendParsedString(lp,"^Z")
	else:
		fqterm.sendParsedString(lp,reply_key)
	fqterm.sendString(lp,reply)
	fqterm.sendParsedString(lp,"^M")
Exemplo n.º 3
0
def antiIdle(lp):
    fqterm.sendParsedString(lp, "^@")
    print "antiIdle"
Exemplo n.º 4
0
def antiIdle(lp):
	fqterm.sendParsedString(lp,"^@")
	print "antiIdle"
Exemplo n.º 5
0
# coding=UTF-8
# 连续发文

import fqterm
import sys, string, random

sessionID=long(sys.argv[0])
#print "sessionID is %s"%ID

random.seed()
for j in range(13):
	i=random.random()*100000
	print i
	title='%f只青蛙%f张嘴'%(i,i)
	content='%f只眼睛%f条腿'%(2*i,4*i)
	#data=['^p', title, '\n', '\n', content, '^w','\n']
	fqterm.sendParsedString(sessionID, r'^p%s\n\n%s^w\n'%(title, content) )
	#for item in data:
	#	SendParsedString(ID, item)
	#	if dataEvents.has_key(ID):
	#		dataEvents[ID].wait()
Exemplo n.º 6
0
# coding=UTF-8
# 连续发文

import fqterm
import sys, string, random

sessionID = long(sys.argv[0])
#print "sessionID is %s"%ID

random.seed()
for j in range(13):
    i = random.random() * 100000
    print i
    title = '%f只青蛙%f张嘴' % (i, i)
    content = '%f只眼睛%f条腿' % (2 * i, 4 * i)
    #data=['^p', title, '\n', '\n', content, '^w','\n']
    fqterm.sendParsedString(sessionID, r'^p%s\n\n%s^w\n' % (title, content))
    #for item in data:
    #	SendParsedString(ID, item)
    #	if dataEvents.has_key(ID):
    #		dataEvents[ID].wait()