Exemple #1
0
def run(text,sock):
	if '!help' in text.msg.words(0):
		file=open('lib/help','r')
		j=0
		for i in file.readlines():
			if j!=1:
				if access(text.sender())!=True:
					j+=1
					continue
			sock.notice(text.sender().split('!')[0],i)
		file.close()
Exemple #2
0
def run(text, sock):
    if text.msg.words(0) == "$c" and access(text.sender()) == True:
        sock().send("PRIVMSG " + text.msg().split("$c")[1] + "\r\n")
Exemple #3
0
def run(text,sock):
	if text.msg.words(0)=='$rehash' and access(text.sender())==True:
		sock.plugins[0][0],msg=loadPlugins()
		sock.msg(text.recipient(),msg)