コード例 #1
0
ファイル: __init__.py プロジェクト: ragzilla/txwatbf3
	def _command(self, user, channel, cmnd):
		PyFiBot._command(self, user, channel, cmnd)
		# check for inline commands
		try:
			cmnd, args = cmnd.split(" ", 1)
		except ValueError:
		    args = ""
		for module, env in self.factory.ns.items():
			myglobals, mylocals = env
			commands = [(c, ref) for c, ref in mylocals.items() if c == "inlinecommand_%s" % cmnd]
			for cname, command in commands:
				log.info("module inlinecommand %s called by %s (%s) on %s" % (cname, user, self.factory.isAdmin(user), channel))
				res = yield command(self, user, channel, args)
コード例 #2
0
ファイル: __init__.py プロジェクト: ragzilla/txwatbf3
	def __init__(self, network):
		self.password = network.password
		self.CMDCHAR = "!"
		PyFiBot.__init__(self, network)