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

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

src/b/3/b3-1.9.2/b3/parsers/iourt42.py   b3(Download)
 
            if self._permban_with_frozensand:
                cmd = self.getCommand('auth-permban', cid=client.cid)
                self.info('sending ban to Frozen Sand : %s' % cmd)
                rv = self.write(cmd)
 
            if client.connected:
                cmd = self.getCommand('ban', cid=client.cid, reason=reason)
                self.info('sending ban to server : %s' % cmd)
                rv = self.write(cmd)
                hours -= 24
 
            cmd = self.getCommand('auth-tempban', cid=client.cid, days=days, hours=hours, minutes=int(minutes))
            self.info('sending ban to Frozen Sand : %s' % cmd)
            rv = self.write(cmd)
 
        if client.connected:
            cmd = self.getCommand('tempban', cid=client.cid, reason=reason)
            self.info('sending ban to server : %s' % cmd)
            rv = self.write(cmd)
    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:

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt42.py   big-brother-bot(Download)
 
            if self._permban_with_frozensand:
                cmd = self.getCommand('auth-permban', cid=client.cid)
                self.info('sending ban to Frozen Sand : %s' % cmd)
                rv = self.write(cmd)
 
            if client.connected:
                cmd = self.getCommand('ban', cid=client.cid, reason=reason)
                self.info('sending ban to server : %s' % cmd)
                rv = self.write(cmd)
                hours -= 24
 
            cmd = self.getCommand('auth-tempban', cid=client.cid, days=days, hours=hours, minutes=int(minutes))
            self.info('sending ban to Frozen Sand : %s' % cmd)
            rv = self.write(cmd)
 
        if client.connected:
            cmd = self.getCommand('tempban', cid=client.cid, reason=reason)
            self.info('sending ban to server : %s' % cmd)
            rv = self.write(cmd)
    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: