Warning users
Warning users with Cosmobot
You can warn users by replying to a message in the group chat with the warn command - #warn or #w. This will issue a warning to the message sender. The user will be auto-banned in the chat (not globally) after receiving 3 warnings.
Optionally a reason can be specified with the command.
To undo the warning use #unwarn or #uw command by replying to a message of the user.
To clear all warnings use #clearwarn or #cw command by replying to a message of the user.
The spelled-out forms work the same way, singular or plural: #warning and #warnings, #unwarning and #unwarnings, #clearwarning and #clearwarnings.
After a user is auto-banned #unwarn or #clearwarn won't unban them - an explicit unban action is required.
See this to learn how to unban with Cosmobot.