source: code/trunk/doc/suika-bouncerserv.7@ 822

Last change on this file since 822 was 817, checked in by yakumo.izuru, 2 years ago

See you in Hell, scdoc!

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

File size: 7.9 KB
Line 
1.Dd $Mdocdate$
2.Dt SUIKA-BOUNCERSERV 7
3.Os
4.Sh NAME
5.Nm suika-bouncerserv
6.Nd Service bot exposed by suika to control the bouncer
7.Sh DESCRIPTION
8suika exposes an IRC service called BouncerServ to manage the bouncer.
9Commands can be sent via regular private messages
10(/msg BouncerServ <command> [args...]). Commands may be written in full or
11abbreviated form, for instance network can be abbreviated as net or just
12n.
13.Ss COMMANDS
14.Bl -tag -width 11n
15.It help [command]
16Show a list of commands. If command is specified, show a help message for
17the command.
18.It network create -addr <addr> [options...]
19Connect to a new network at addr. -addr is mandatory.
20
21addr supports several connection types:
22
23.Bl -tag -width 5n
24.It [ircs://]<host>[:port]
25connects with TLS over TCP
26.It irc+insecure://<host>[:port]
27connects with plain-text TCP
28.It irc+unix:///<path>
29connects to a Unix socket
30.El
31
32Other options are:
33
34-name <name>
35Short network name. This will be used instead of addr to refer to the
36network.
37
38-username <username>
39Connect with the specified username. By default, the nickname is used.
40
41-pass <pass>
42Connect with the specified server password.
43
44-realname <realname>
45Connect with the specified real name. By default, the account's realname
46is used if set, otherwise the network's nickname is used.
47
48-nick <nickname>
49Connect with the specified nickname. By default, the account's username
50is used.
51
52-enabled true|false
53Enable or disable the network. If the network is disabled, the bouncer
54won't connect to it. By default, the network is enabled.
55
56-connect-command <command>
57Send the specified command as a raw IRC message right after connecting
58to the server. This can be used to identify to an account when the
59server doesn't support SASL.
60
61.It network update [name] [options...]
62Update an existing network. The options are the same as the
63network create command.
64
65When this command is executed, suika will disconnect and re-connect to the
66network.
67
68If name is not specified, the current network is updated.
69
70.It network delete [name]
71Disconnect and delete a network.
72
73If name is not specified, the current network is deleted.
74
75.It network quote [name] <command>
76Send a raw IRC line as-is to a network.
77
78If name is not specified, the command is sent to the current network.
79.It network status
80Show a list of saved networks and their current status.
81.It channel status [options...]
82Show a list of saved channels and their current status.
83Options:
84
85-network <name>
86
87Only show channels for the specified network. By default, only the channels in the current network are displayed.
88channel update <name> [options...]
89
90Update the options of an existing channel.
91Options are:
92
93-detached true|false
94
95Attach or detach this channel.
96A detached channel is joined but is hidden by the bouncer. This is useful to e.g. collect logs and highlights in low-interest or high-traffic channels.
97
98-relay-detached <mode>
99
100Set when to relay messages from detached channels to the user with a BouncerServ NOTICE.
101Modes are:
102
103message
104
105Relay any message from this channel when detached.
106highlight
107
108Relay only messages mentioning you when detached.
109none
110
111Don't relay any messages from this channel when detached.
112default
113
114Currently same as highlight. This is the default behaviour.
115-reattach-on <mode>
116
117Set when to automatically reattach to detached channels.
118Modes are:
119
120message
121
122Reattach to this channel when any message is received.
123highlight
124
125Reattach to this channel when any message mentioning you is received.
126none
127
128Never automatically reattach to this channel.
129default
130
131Currently same as none. This is the default behaviour.
132-detach-after <duration>
133
134Automatically detach this channel after the specified duration has elapsed without receving any message corresponding to -detach-on.
135Example duration values: 1h30m, 30s, 2.5h.
136
137Setting this value to 0 will disable this behaviour, i.e. this channel will never be automatically detached. This is the default behaviour.
138
139-detach-on <mode>
140
141Set 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.
142Modes are:
143
144message
145
146Receiving any message from this channel will reset the auto-detach timer.
147highlight
148
149Receiving any message mentioning you from this channel will reset the auto-detach timer.
150none
151
152Receiving messages from this channel will not reset the auto-detach timer. Sending messages or joining the channel will still reset the timer.
153default
154
155Currently same as message. This is the default behaviour.
156.It channel delete <name>
157Leave and forget a channel.
158.It certfp generate [options...]
159Generate self-signed certificate and use it for authentication (via SASL EXTERNAL).
160Generates a 3072-bit RSA private key by default.
161
162Options are:
163
164-network <name>
165
166Select a network. By default, the current network is selected, if any.
167-key-type <type>
168
169Private key algorithm to use. Valid values are: rsa, ecdsa and ed25519. ecdsa uses the NIST P-521 curve.
170-bits <bits>
171
172Size of RSA key to generate. Ignored for other key types.
173certfp fingerprint [options...]
174
175Show SHA-1 and SHA-256 fingerprints for the certificate currently used with the network.
176Options are:
177
178-network <name>
179
180Select a network. By default, the current network is selected, if any.
181sasl status [options...]
182
183Show current SASL status.
184Options are:
185
186-network <name>
187
188Select a network. By default, the current network is selected, if any.
189.It sasl set-plain [options...] <username> <password>
190Set SASL PLAIN credentials.
191Options are:
192
193-network <name>
194
195Select a network. By default, the current network is selected, if any.
196.It sasl reset [options...]
197Disable SASL authentication and remove stored credentials.
198Options are:
199
200-network <name>
201
202Select a network. By default, the current network is selected, if any.
203.It user status
204Show a list of users on this server. Only admins can query this information.
205user create -username <username> -password <password> [options...]
206
207Create a new suika user. Only admin users can create new accounts. The -username and -password flags are mandatory.
208Options are:
209
210-username <username>
211
212The bouncer username. This cannot be changed after the user has been created.
213-password <password>
214
215The bouncer password.
216-disable-password
217
218Disable password authentication. The user will be unable to login.
219-admin true|false
220
221Make the new user an administrator.
222-nick <nick>
223
224Set the user's nickname. This is used as a fallback if there is no nickname set for a network.
225-realname <realname>
226
227Set the user's realname. This is used as a fallback if there is no realname set for a network.
228-enabled true|false
229
230Enable 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.
231.It user update [username] [options...]
232Update a user. The options are the same as the user create command.
233If username is omitted, the current user is updated. Only admins can update other users.
234
235Not all flags are valid in all contexts:
236
237•The -username flag is never valid, usernames are immutable.
238•The -nick and -realname flag are only valid when updating the current user.
239•The -admin and -enabled flags are only valid when updating another user.
240.It user delete <username> [confirmation token]
241Delete a suika user.
242Only admins can delete other users.
243.It user run <username> <command...>
244Execute a command as another user.
245Only admins can use this command.
246.It server status
247Show some bouncer statistics. Only admins can query this information.
248.It server notice <message>
249Broadcast a notice. All currently connected bouncer users will receive the message from the special BouncerServ service. Only admins can broadcast a notice.
250.El
251.Sh SEE ALSO
252.Xr suika 1
253.Xr suika-config 5
254.Sh AUTHORS
255.An Simon Ser and contributors
256.Lk https://emersion.fr
257.Pp
258.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
Note: See TracBrowser for help on using the repository browser.