help command
Acceptance Criteria
GIVEN I am an admin of a channel named #foo on phone number +15555555555
- WHEN I send a message that says "HELP" to the channel's phone number
- THEN I will get a message back that says:
--------------- ADMIN COMMANDS: --------------- When you send the following messages, they will be interpreted as commands (and not be broadcasted): - "HELP" shows this message - "INFO" shows basic stats about the channel - "RENAME new name" renames the channel to "new name" - "LEAVE" disables you from broadcasting or receiving messages on the channel - "ADD +14444444444" enables a new admin with phone number +1 (444) 444-4444 to broadcast messages on the channel - "REMOVE +14444444444" disables admin with phone number +1 (444) 444-4444 from broadcasting messages on the channel ------------------- NON-ADMIN COMMANDS: ------------------- All (non-admin) users of this channel can send the following commands: - "JOIN" subscribes a person to the channel and causes them to receive all messages you send to it - "LEAVE" will cause a subscriber to unsubscribe and stop receiving messages from the channel ---------------------------- SOURCE CODE / ISSUE-TRACKING ---------------------------- You can view the source code that runs signalboost here: https://0xacab.org/team-friendo/signalboost You can submit bugs or request new features here: https://0xacab.org/team-friendo/signalboost/issues
GIVEN I am a subscriber to a channel named #foo
- WHEN I send a message that says "HELP" to the channel's phone number
- THEN I will get a message back that says:
----- INFO: ----- You are subscribed to the channel #foo: - phone number: +1-555-555-5555 - admin count: 3 - subscriber count: 1000 When admins send messages to the channel, all subscribers will receive them. Subscribers cannot send messages. --------- COMMANDS: --------- You can send the following messages to +1-555-555-5555 to cause the following things to happen: - "HELP" shows this message - "INFO" shows the "INFO" header above - "JOIN" enables you to receive messages from this channel - "LEAVE: disables you from receiving messages on this channel NOTE: any other messages sent to +1-555-555-5555 will be ignored. ---------------------------- SOURCE CODE / ISSUE-TRACKING ---------------------------- You can view the source code that runs signalboost here: https://0xacab.org/team-friendo/signalboost You can submit bugs or request new features here: https://0xacab.org/team-friendo/signalboost/issues
Edited by aguestuser