-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationmoduleThis issue has something todo with bot moduleThis issue has something todo with bot module
Description
This bot needs to have group management features. So let's create it. In order to gets the bot working properly, the bot must be a group administrator with sufficient permissions.
Module Specification
- Command in this module is any message that starts with
!or/or.or~. - In this document, we will demonstrate any command starts with
!, but you can use other prefixes mentioned above.
Privileged commands
!banis a command for admin to ban a user (reply to user's message to be banned).!unbanis a command for admin to unban a user (reply to user's message to be unbanned).!kickis a command for admin to kick a user (reply to user's message to be kicked). The difference with!banis that the kicked user is free to rejoin the group after they gets kicked. No unban action needs to be performed.!warnis a command for admin to warn user (reply to user's message to be warned). The number of warnings will be stored in the bot database. When it reaches the maximum number, the warned user will be banned from the group.!muteis a command for admin to mute user (reply to user's message to be muted).!tmuteis a command for admin to mute user temporarily. This command requires an argument. The argument is a number to determine how long the user is going to be muted. It can use suffixsfor second,mfor minute,dfor day,wfor week. By default, if suffix is not provided, then the unit will be second.!unmuteis a command for admin to unmute user (reply to user's message to be unmuted).!pinis a command for admin to pin a message (reply to message to be pinned).!unpinis a command for admin to unpin a message (reply to message to be unpinned).!delor!deleteis a command for admin to delete a message (reply to message to be deleted).
Normal user commands
!reportis a command for normal user to report an event to the admins. All admins will be notified via private message if they have started the bot.!delvoteis a command for normal user to vote a message deletion.
Caveat: This document has not finished.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationmoduleThis issue has something todo with bot moduleThis issue has something todo with bot module