source: code/trunk/doc/suika-bouncerserv.adoc

Last change on this file was 823, checked in by yakumo.izuru, 21 months ago

Use asciidoctor for generating manpages.
Rename suikactl to suikadb.

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 7.8 KB
RevLine 
[823]1= suika-bouncerserv(7)
2Simon Ser and contributors / Izuru Yakumo
3v0.4.3
4:doctype: manpage
5:manmanual: Suika IRC Bouncer
6:mansource: SUIKA-BOUNCERSERV
7
8== Name
9suika-bouncerserv - Service bot exposed by suika(1) to control the bouncer
10
11== Description
12suika(1) exposes an IRC service called BouncerServ to manage the bouncer.
13Commands can be sent via regular private messages.
14Commands may be written in full or abbreviated form, for instance network
15can be abbreviated as net or just n.
16
17== Commands
18
19=== help [command]
20Show a list of commands.
21If command is specified, show a help message for the command.
22
23=== network-create -addr <addr> [options...]
24Connect to a new network at addr.
25The option -addr is mandatory.
26
27addr supports several connection types:
28* ircs://<host>:port - connects with TLS over TCP
29* irc+insecure://<host>:port - connects with plain-text over TCP
30* irc+unix://<path> - connects to a Unix domain socket
31
32Other options are:
33
34* -name <name>
35Short network name, this will be used instead of addr to refer to the network
36
37* -username <username>
38Connect with the specified username, by default, the nickname is used
39
40* -pass <pass>
41Connect with the specified server password
42
43* -realname <realname>
44Connect with the specified real name, by default, the account's realname is used if set, otherwise the network's nickname is used
45
46* -nick <nick>
47Connect with the specified nickname, by default, the account's username is used
48
49* -enabled [bool]
50Enable or disable the network, if the network is disabled, the bouncer won't connect to it, by default, the network is enabled
51
52* -connect-command <command>
53Send the specified command as a raw IRC message right after connecting to the server, this can be used to identify to an account if a server does not support SASL
54
55=== network update [options...]
56Update an existing network. The options are the same as the network create command.
57When this command is executed, suika(1) will disconnect and re-connect to the network.
58If name is not specified, the current network is updated.
59
60=== network delete [name]
61Disconnect and delete a network.
62If name is not specified, the current network is deleted.
63
64=== network quote [name] <command>
65Send a raw IRC line as-is to a network.
66If name is not specified, the command is sent to the current network.
67
68=== network status
69Show a list of saved networks and their current status.
70
71=== channel status [options...]
72Show a list of saved channels and their current status.
73Options:
74
75* -network <network>
76Only show channels for the specified network. By default, only the channels in the current network are displayed.
77
78=== channel update <name> [options...]
79Update the options of an existing channel.
80Options are:
81
82-detached [bool]
83Attach or detach this channel.
84A detached channel is joined but is hidden by the bouncer.
85This is useful to e.g. collect logs and highlights in low-interest or high-traffic channels.
86
87-relay-detached [mode] - Set when to relay messages from detached channels to the user with a BouncerServ NOTICE
88* message - Relay any message from this channel when detached.
89* highlight - Relay only messages mentioning you when detached.
90* none - Do not relay any messages from this channel when detached.
91* default - Currently same as highlight. This is the default behaviour.
92
93
94-reattach-on [mode] - Set when to automatically reattach to detached channels.
95
96* message - Reattach to this channel when any message is received.
97* highlight - Reattach to this channel when any message mentioning you is received.
98* none - Never automatically reattach to this channel.
99* default - Currently same as none. This is the default behaviour.
100
101-detach-after [duration]
102
103Automatically detach this channel after the specified duration has elapsed without receving any message corresponding to -detach-on. Example duration values: 1h30m, 30s, 2.5h. Setting this value to 0 will disable this behaviour, i.e. this channel will never be automatically detached. This is the default behaviour.
104
105-detach-on [mode]
106Set when to reset the auto-detach timer used by -detach-after, causing it to wait again for the auto-detach duration timer before detaching. Joining, reattaching, sending a message, or changing any channel option will reset the timer, in addition to the messages specified by the mode.
107
108* message - Receiving any message from this channel will reset the auto-detach timer.
109* highlight - Receiving any message mentioning you from this channel will reset the auto-detach timer.
110* none - Receiving messages from this channel will not reset the auto-detach timer. Sending messages or joining the channel will still reset the timer.
111* default - Currently same as message. This is the default behaviour.
112
113=== certfp generate [options...]
114Generate self-signed certificate and use it for authentication (via SASL EXTERNAL). Generates a 3072-bit RSA private key by default.
115Options are:
116
117* -network <network>
118Select a network. By default, the current network is selected, if any.
119
120* -key-type <type>
121Private key algorithm to use. Valid values are: rsa, ecdsa and ed25519. ecdsa uses the NIST P-521 curve.
122
123* -bits <bits>
124Size of RSA key to generate. Ignored for other key types.
125
126=== certfp fingerprint [options...]
127Show SHA-1 and SHA-256 fingerprints for the certificate currently used with the network.
128Options are:
129
130* -network <network>
131Select a network. By default, the current network is selected, if any.
132
133=== sasl status [options...]
134
135Show current SASL status.
136Options are:
137
138* -network <network>
139Select a network. By default, the current network is selected, if any.
140
141=== sasl set-plain [options...] <username> <password>
142Set SASL PLAIN credentials.
143Options are:
144
145* -network <network>
146Select a network. By default, the current network is selected, if any.
147
148=== sasl reset [options...]
149Disable SASL authentication and remove stored credentials.
150Options are:
151
152* -network <network>
153Select a network. By default, the current network is selected, if any.
154
155=== user status
156Show a list of users on this server. Only admins can query this information.
157
158=== user create -username <username> -password <password> [options...]
159
160Create a new suika user. Only admin users can create new accounts. The -username and -password flags are mandatory.
161Options are:
162
163* -username <username> - The bouncer username. This cannot be changed after the user has been created.
164* -password <password> - The bouncer password.
165* -disable-password - Disable password authentication. The user will be unable to login.
166* -admin [bool] - Make the new user an administrator.
167* -nick <nick> - Set the user's nickname. This is used as a fallback if there is no nickname set for a network.
168* -realname <realname> - Set the user's realname. This is used as a fallback if there is no realname set for a network.
169* -enabled [bool] - Enable or disable the user. If the user is disabled, the bouncer will not connect to any of their networks, and downstream connections will be immediately closed. By default, users are enabled.
170
171=== user update [username] [options...]
172Update a user. The options are the same as the user create command. If username is omitted, the current user is updated. Only admins can update other users.
173
174Not all flags are valid in all contexts:
175
176* The -username flag is never valid, usernames are immutable.
177* The -nick and -realname flag are only valid when updating the current user.
178* The -admin and -enabled flags are only valid when updating another user.
179
180=== user delete <username> [confirmation token]
181Delete a suika user. Only admins can delete other users.
182=== user run <username> <command...>
183Execute a command as another user. Only admins can use this command.
184=== server status
185Show some bouncer statistics. Only admins can query this information.
186=== server notice <message>
187Broadcast a notice. All currently connected bouncer users will receive the message from the special BouncerServ service. Only admins can broadcast a notice.
188
189== See Also
190suika(1)
191suikadb(1)
192suika-znc-import(1)
193suika-config(5)
Note: See TracBrowser for help on using the repository browser.