1
%{help=share howto}%{+n}
3
First you need to decide two things:
4
%b1.%b Which bot will be 'active' and which 'passive'.
5
The active bot will SEND a userfile to the passive bot. %bThe passive%b
6
%bbot's userfile will be overwritten.%b We shall call the %bACTIVE%b bot
7
"A", and the %bPASSIVE%b bot B.
9
%b2.%b Which channels you want to share between the 2 bots. ALL global
10
info will be shared, but only the channels you mark as shared will be
14
%b1.%b For each channel you want to share, do:
16
.chanset #channel +shared
18
%b2.%b On bot A, type:
20
'.botattr B +s' (+s means actively share)
22
%b3.%b On bot B, type:
24
'.botattr A +p' (+s means passively share)
26
%b4.%b For each channel you want shared between the two, do the following:
28
On bot A, type: '.botattr B |+s #channel'
29
On bot B, type: '.botattr A |+s #channel'
31
%b5.%b Link them together; they should start sharing immediately.
3
clears the resync buffer for a share-bot. this is useful if you
4
want to start over with a userfile transfer: you can unlink the
5
sharebots, flush the resync buffer, and relink.
7
see also: link, chattr, unlink
8
%{help=set allow-resync}%{+n}
9
### %bset allow-resync%b 0/1
10
This setting determines if the bot will re-send the userfile every
11
single time a sharebot reconnects, or if it will store changes
12
that occur for %bresync-time%b seconds and send only these when
13
the sharebot reconnects, this has been know to be a bit unreliable
14
in the past, hence the option.
16
see also: set resync-time
17
%{help=set resync-time}%{+n}
18
### %bset resync-time%b <#>
19
This sets the number of seconds to store resync information for
20
a sharebot before it's assumed to be dead & buried, and therefore
21
the userfile needs to be re-sent.
23
see also: set allow-resync
24
%{help=set private-global}%{+n}
25
### %bset private-global%b 0/1
26
If you are sharing userfiles with someone else, and you don't
27
want %bany%b global flags on the other bots propagated to your bot,
28
set this. It overrides the setting of private-globals.
30
see also: set private-globals
31
%{help=set private-globals}%{+n}
32
### %bset private-globals%b [flags]
33
If you are sharing userfiles with someone else, and you don't
34
want various global flags on the other bots propagated to your bot,
35
set this to the global flags you would like to remain unaffected.
36
The setting of private-global will override this.
38
see also: set private-global
34
This clears the resync buffer for a share-bot. This is useful if you want
35
to start over with a userfile transfer. You can unlink the sharebots, flush
36
the resync buffer, and relink.
38
See also: link, unlink, chattr, botattr
39
39
%{help=share module}%{+n}
40
### help on the %bshare module%b
41
This module provides userfile sharing between two bots, it
42
transfers the userfile when they first connect, and then
43
send updates whilst they are connected to keep the userfiles
45
Commands available: %bflush%b
46
Tcl settings : %ballow-resync%b %bresync-time%b
47
%bprivate-global%b %bprivate-globals%b
48
see %b'.help share howto'%b for a step-by-step list of what
49
needs to be done to setup sharing.
50
%{help=share howto}%{+n}
51
### how to setup sharing with the %bshare module%b
52
First you need to decide 2 things:
53
(1) which bot will be 'active' and which 'passive',
54
the passive bot's userfile WILL GET OVERWRITTEN
56
We shall call the ACTIVE bot A, the PASSIVE bot B
57
(2) which channels you want to share between the 2 bots.
58
Only the channels you choose to share will have their
59
info shared, ALL global info will be shared.
62
(1) Do for each of the channels you want to share a
63
.chanset #channel +shared
64
(2) on A type: '.botattr B +s' +s == actively share
65
on B type: '.botattr A +p' +p == passively share
66
(3) for each channel you want shared between the two,
67
on A type: '.botattr B |+s #channel'
68
on B type: '.botattr A |+s #channel'
69
(4) link them together, they should start sharing immediately
41
This module provides userfile sharing support between two directly linked
44
See %b'.help share howto'%b for more information.
46
The following commands are provided by the share module:
51
Config file variables for configuring the share module:
52
%ballow-resync resync-time private-global%b
53
%bprivate-user override-bots private-globals%b
54
(Use %b'.help set <variable>'%b for more info)
71
### commands for the %bshare module%b
56
### %bshare module%b commands