RENAME generates new random name for channel
value
- in MR !482 (merged) we introduced a constraint that all channels have randomly-generated, uneditable 2-word names
- this is great for reducing risk to ourselves and our users, but has the unfortunate side-effect of (1) generating names that people might not like and cannot change, (2) preventing people from rotating channel names as opsec practice
- this MR introduces a new functionality for the old
RENAME
command whereby issuing it renames the channel to a new randomly-generated 2-word name - dependency on #295 (closed) and #268 (closed)
behavior
happy path
GIVEN a channel named mustering galactic
- WHEN
ADMIN 1
issuesRENAME
- THEN the channel is renamed to a new 2-word random name (for example:
fostering airplane
) - AND THEN the admins get a message saying
[NOTIFICATION]
This channel has been renamed to [fostering airplane] by ADMIN 1.
- AND THEN when subscribers receive broadcast messages subsequently, they will be prefixed with the header
[fostering airplane]
corner cases
GIVEN the above
- AND hotline messages enabled
- WHEN a rando or subscriber sends
RENAME
- THEN the message will be forwarded as a hotline message
GIVEN the above
- AND hotline messages are disabled
- WHEN a rando or subscriber sends
RENAME
- THEN they will receive a generic error message prompting them to send
HELP
for valid commands
discovery
GIVEN an admin has issued HELP
- THEN there should be a listing for
RENAME
which contains the following description of the command:
RENAME
-> generates a new random 2-word name for the channel
GIVEN anyone visits https://signalboost.info/how-to
- THEN in the Managing your channel section > Rename, they will see:
RENAME
If you're unhappy with your randomly generated channel name, use `RENAME` to generate a new one! We use a library called [niceware](https://www.npmjs.com/package/niceware) to generate new names.
Edited by Mari