示例#1
0
文件: safety.py 项目: LILA-99/pybot
def checkIfPersonIsIgnoredByBot():
	
	import pybot
	
	if arr.checkIfReal(pybot.ignoredByBot):
		for x in pybot.ignoredByBot:
			if pybot.data[1:pybot.data.index('!')]==x:
				return True
				
	return False
示例#2
0
文件: safety.py 项目: LILA-99/pybot
def checkIfCanExecuteAggressive():
	
	import pybot
	
	if pybot.notAllowHarmful==0:
		return True
		
	if arr.checkIfReal(pybot.allowedHarmfulFor):
		for x in pybot.allowedHarmfulFor:
			if pybot.data[1:pybot.data.index('!')]==x:
				return True
			if pybot.data[1:pybot.data.index('!')]==pybot.owner:
				return True
				
	return False