Handle User Commands #12
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: erin/lila-chat#12
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
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
, orCommand
. You only have to worry about theCommand
type for now though.