============
 COLLECTIVE 
============
| 

about
-----
| 

:author:  Bart Thate <bart@gozerbot.org>
:contact: IRCNET/#dunkbots
:website: http://plugins.gozerbot.org
:license: Public Domain
 
| 

description
-----------
| 

manage links to other bots .. to be accessible a bot needs to run the webserver

| 

commands
--------
| 


1) coll

    coll <cmnd> .. execute command in the collective

    ::

        <user> !coll lq
        <output> 3 out of 10 (0.199109077454) .. -||qqa||- #1614 <@serkoon> *buig* <@jt-> k  <@serkoon> nee, jt-, niet
        <output>  op die manier .. -||noa||- #12 <@Nadriel> My face. <@Nadriel> http://irc-galleria.net/view.php?nick=x6x9x&image_id=57041768
        <output>  <@MinceR> ouch. <@MinceR> apparently that girl has just saw that video shown in that ring movie... <@Nadriel>
        <output>  So did I. <@Nadriel> =P <@MinceR> your face doesn't have that black thing over it .. -||freecode||-
        <output>  #2255 <tehmaze> beter een gecontroleerd doekje vol dan een vies bed, zullen we maar zeggen  <wouzer>
        <output>  tehmaze: ziet er netjes uit  <tehmaze> ty

2) coll-active

    show active nodes

    ::

        <user> !coll-active
        <output> 81.173.19.105:8088 (qqa) .. 81.173.19.71:8088 (noa) .. 83.98.249.137:8888 (freecode)

3) coll-addnode

    coll-addnode <name> <node> .. add a node to cache .. node is in host:port format

    ::

        <user> !coll-addnode r8 r8.cg.nu:8088

4) coll-boot

    sync collective list with provided host

    ::

        <user> !coll-boot

    ::

        <user> !coll-boot localhost:8888
        <output> no new nodes added from localhost:8888

5) coll-checkactive

    run active nodes check

    ::

        <user> !coll-checkactive
        <output> calling active checker .. removed: [] .. added: []

6) coll-clean

    clean the collective list

    ::

        <user> !coll-clean
        <output> done

7) coll-delnode

    coll-delnode <name> .. remove node from collective list

    ::

        <user> !coll-delnode r8
        <output> can't find node r8

8) coll-disable

    disable the collective

    ::

        <user> !coll-disable
        <output> collective disabled

9) coll-enable

    enable the collective

    ::

        <user> !coll-enable

10) coll-exec

    coll <nodename> <cmnd> .. execute command in the collective

    ::

        <user> !coll r8 lq
        <output> no results found

11) coll-fullboot

    do a boot on every node in the collective list

    ::

        <user> !coll-fullboot
        <output> 0 nodes checked .. current 0 nodes in list

12) coll-getnode

    coll-getnode <name> .. get node of <name>

    ::

        <user> !coll-getnode r8
        <output> no node named r8 found

13) coll-inactive

    show inactive nodes

    ::

        <user> !coll-inactive
        <output> no nodes inactive

14) coll-list

    list nodes cache

    ::

        <user> !coll-list

15) coll-names

    show all node names

    ::

        <user> !coll-names
        <output> qqa .. qqa .. freecode .. vortex .. r8.cg.nu:8088 .. flex .. local .. ivitor .. hzt .. noa .. rex ..
        <output>  freecode .. rex .. cg .. noa .. qqa .. tiger

16) coll-ping

17) coll-remove

    coll-remove <name> .. rmeove node <name> from the colletive lists

    ::

        <user> !coll-remove r8
        <output> can't get node for r8

18) coll-rename

    rename a collective node name

    ::

        <user> !coll-rename dunk dunker
        <output> can't get node for dunk

19) coll-save

    save collective data

    ::

        <user> !coll-save
        <output> collective saved

20) coll-setname

    set name of collective node

    ::

        <user> !coll-setname r8 r8.cg.nu:8088
        <output> r8.cg.nu:8088 added

21) coll-status

    show active  nodes

    ::

        <user> !coll-status
        <output> collective void

22) coll-sync

    coll-sync <node> .. sync with provided node

    ::

        <user> !coll-sync r8.cg.nu
