コード例 #1
0
ファイル: default.py プロジェクト: b1naryth1ef/Boteh
def opmeCmd(msg):
	msz = msg.msg.split(' ')
	if len(msz) == 1:
		client.opUser(msg.nick, msg.chan)
		client.send(msg.chan, '%s: Well hello there you sexy beast! About time you had OP...' % msg.nick)
	else:
		client.send(msg.chan, 'Usage: '+ opmeCmd.usage)
コード例 #2
0
ファイル: default.py プロジェクト: b1naryth1ef/Boteh
def opCmd(msg):
	msz = msg.msg.split(' ')
	if len(msz) == 2:
		client.opUser(msz[1], msg.chan)
	else:
		client.send(msg.chan, 'Usage: '+ opCmd.usage)