Open the chat settings (command – /settings), choose the media type and set the maximum number of messages allowed per user per day.
If the limit is exceeded, Luci will automatically notify and restrict the user!
The limit resets at midnight!
You can also enable admin restrictions — this option works in “manual” mode, meaning Luci will automatically delete prohibited messages from admins.
For Luci to work correctly, it must have the proper permissions (to ban users and delete messages).