Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
Return a reference to a loaded command

src/b/3/b3-1.9.2/b3/parsers/sof2.py   b3(Download)
                lines = []
                for line in self.getWrap(text, self._settings['line_length'], self._settings['min_wrap_length']):
                    lines.append(self.getCommand('message', prefix=self.msgPrefix, name=client.name, message=line))
 
                self.writelines(lines)

src/b/i/big-brother-bot-HEAD/b3/parsers/sof2.py   big-brother-bot(Download)
                lines = []
                for line in self.getWrap(text, self._settings['line_length'], self._settings['min_wrap_length']):
                    lines.append(self.getCommand('message', prefix=self.msgPrefix, name=client.name, message=line))
 
                self.writelines(lines)

src/b/3/b3-1.9.2/b3/parsers/etpro.py   b3(Download)
                lines = []
                for line in self.getWrap(text, self._settings['line_length'], self._settings['min_wrap_length']):
                    lines.append(self.getCommand('message', name=client.name, prefix=self.msgPrefix, message=line))
 
                self.writelines(lines)
            if client.cid:                
                for line in wrapped:
                    lines.append(self.getCommand('deadsay', name=client.name, prefix=self.msgPrefix, message=line))
 
        if len(lines):        

src/b/i/big-brother-bot-HEAD/b3/parsers/etpro.py   big-brother-bot(Download)
                lines = []
                for line in self.getWrap(text, self._settings['line_length'], self._settings['min_wrap_length']):
                    lines.append(self.getCommand('message', name=client.name, prefix=self.msgPrefix, message=line))
 
                self.writelines(lines)
            if client.cid:                
                for line in wrapped:
                    lines.append(self.getCommand('deadsay', name=client.name, prefix=self.msgPrefix, message=line))
 
        if len(lines):        

src/b/3/b3-1.9.2/b3/parsers/iourt41.py   b3(Download)
    def broadcast(self, msg):
        lines = []
        for line in self.getWrap(msg, self._settings['line_length'], self._settings['min_wrap_length']):
            lines.append(self.getCommand('broadcast', prefix=self.msgPrefix, message=line))
 
    def inflictCustomPenalty(self, type, client, reason=None, duration=None, admin=None, data=None):
        if type == 'slap' and client:
            cmd = self.getCommand('slap', cid=client.cid)
            self.write(cmd)
            if reason:
                client.message("%s" % reason)
            return True
 
        elif type == 'nuke' and client:
            cmd = self.getCommand('nuke', cid=client.cid)
 
            # make sure to unmute first
            cmd = self.getCommand('mute', cid=client.cid, seconds=0)
            self.write(cmd)
            # then mute
            cmd = self.getCommand('mute', cid=client.cid, seconds=seconds)

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt41.py   big-brother-bot(Download)
    def broadcast(self, msg):
        lines = []
        for line in self.getWrap(msg, self._settings['line_length'], self._settings['min_wrap_length']):
            lines.append(self.getCommand('broadcast', prefix=self.msgPrefix, message=line))
 
    def inflictCustomPenalty(self, type, client, reason=None, duration=None, admin=None, data=None):
        if type == 'slap' and client:
            cmd = self.getCommand('slap', cid=client.cid)
            self.write(cmd)
            if reason:
                client.message("%s" % reason)
            return True
 
        elif type == 'nuke' and client:
            cmd = self.getCommand('nuke', cid=client.cid)
 
            # make sure to unmute first
            cmd = self.getCommand('mute', cid=client.cid, seconds=0)
            self.write(cmd)
            # then mute
            cmd = self.getCommand('mute', cid=client.cid, seconds=seconds)

src/b/3/b3-1.9.2/b3/parsers/wop15.py   b3(Download)
    def say(self, msg):
        lines = []
        for line in self.getWrap(msg, self._settings['line_length'], self._settings['min_wrap_length']):
            lines.append(self.getCommand('say', prefix=self.msgPrefix, message=line))
 

src/b/i/big-brother-bot-HEAD/b3/parsers/wop15.py   big-brother-bot(Download)
    def say(self, msg):
        lines = []
        for line in self.getWrap(msg, self._settings['line_length'], self._settings['min_wrap_length']):
            lines.append(self.getCommand('say', prefix=self.msgPrefix, message=line))