Handle User Commands #12

Closed
opened 2021-07-25 22:26:24 +00:00 by erin · 0 comments

When a user types in a command, for example: /ban <user>, the frontend should handle this and send a post request. Just check if the message starts with the command, then parse out the user argument.

Documentation on the moderation API will be added.

Commands should probably also be displayed differently in the chat, there's a event_type in the message which is going to be one of: Normal, Announcement, Emote, or Command. You only have to worry about the Command type for now though.

When a user types in a command, for example: `/ban <user>`, the frontend should handle this and send a post request. Just check if the message starts with the command, then parse out the user argument. Documentation on the moderation API will be added. Commands should probably also be displayed differently in the chat, there's a `event_type` in the message which is going to be one of: `Normal`, `Announcement`, `Emote`, or `Command`. You only have to worry about the `Command` type for now though.
erin added the
enhancement
frontend
labels 2021-07-25 22:26:24 +00:00
lunastella was assigned by erin 2021-07-25 22:26:24 +00:00
erin added this to the Frontend Site project 2021-07-25 22:26:24 +00:00
erin added this to the Get to v1 milestone 2021-07-26 18:16:07 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: erin/lila-chat#12
There is no content yet.