Beispiel #1
0
def _deleteThread(threadData, config):
	stdLog(u'正在删除帖子', 'info')
	if deleteThread(threadData['thread'], config['forum']):
		threadData['forum'] = config['forum']['kw']
		threadData['operation']['operationTime'] = getLogTime()
		stdLog(u'删除成功', 'success')
		stdLog(u'操作时间:' + threadData['operation']['operationTime'], 'debug')
		postLog(threadData, ('file', 'cloud'), config['apikey'])
		return True
	else:
		stdLog(u'删除失败', 'error')
		return False
Beispiel #2
0
def _judgeThread(threadData, config, keywords):
	if judge(threadData, keywords):
		postLog(threadData, ('console'))
		if not config['debug']:
			return True
		else:
			stdLog(u'请确认是否删除(按y删除):', 'info', ('console'), '')
			if raw_input() == 'y':
				stdLog(u'已确认删除帖子...', 'debug')
				return True
			else:
				stdLog(u'跳过删帖', 'debug')

	return False