In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)to many rules for command !rules?
Pages: [1]   Go Down
  Print  
Author Topic: to many rules for command !rules?  (Read 275 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: cod4
Posts: 19
Offline Offline
« on: October 14, 2011, 04:00:46 AM »

hi all,

as a tactical clan we have currently 32 server and/or tactical rules
now when i spal the rules (@rules or !rules), only the first 19 rules show up
how can i get it working so that all the 32 rules will show up?
http://pastebin.com/pi0HJ0iY
additional:
can i use custum commands like !tactrules & !serverrules to spam only a part of the rules?

Black
aka 69|Green
« Last Edit: October 14, 2011, 04:46:22 AM by Blacky » Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #1 on: October 14, 2011, 05:07:50 AM »

Currently the code is limited to 19 rules.

You could edit the admin.py file to increase this number or write a plugin to do what you want.

Code:
    def _sendRules(self, sclient):
        rules = []

        for i in range(1, 20):
            try:
                rule = self.config.getTextTemplate('spamages', 'rule%s' % i)
                rules.append(rule)
            except:
                break

        if sclient:
            for rule in rules:
                sclient.message(rule)
                time.sleep(1)
        else:
            for rule in rules:
                self.console.say(rule)
                time.sleep(1)
« Last Edit: October 14, 2011, 05:10:10 AM by 82ndAB.Bravo17 » Logged
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: cod4
Posts: 19
Offline Offline
« Reply #2 on: October 14, 2011, 05:54:59 AM »

thx bravo
that solved the rules :p
but i'm not that good at programming in a language i don't know :p
that might be a little problem then
Logged
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: cod4
Posts: 19
Offline Offline
« Reply #3 on: October 16, 2011, 07:28:04 AM »

i've seen that the rules spam a little to fast,can i chage that?
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #4 on: October 16, 2011, 08:27:20 AM »

I think if you alter the time.sleep(1) values in the code snippet it should slow it down.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal