Skip to content

[module] Admin module for group management #20

@ammarfaizi2

Description

@ammarfaizi2

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

  1. !ban is a command for admin to ban a user (reply to user's message to be banned).
  2. !unban is a command for admin to unban a user (reply to user's message to be unbanned).
  3. !kick is a command for admin to kick a user (reply to user's message to be kicked). The difference with !ban is that the kicked user is free to rejoin the group after they gets kicked. No unban action needs to be performed.
  4. !warn is 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.
  5. !mute is a command for admin to mute user (reply to user's message to be muted).
  6. !tmute is 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 suffix s for second, m for minute, d for day, w for week. By default, if suffix is not provided, then the unit will be second.
  7. !unmute is a command for admin to unmute user (reply to user's message to be unmuted).
  8. !pin is a command for admin to pin a message (reply to message to be pinned).
  9. !unpin is a command for admin to unpin a message (reply to message to be unpinned).
  10. !del or !delete is a command for admin to delete a message (reply to message to be deleted).

Normal user commands

  1. !report is 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.
  2. !delvote is a command for normal user to vote a message deletion.

Caveat: This document has not finished.

Metadata

Metadata

Labels

documentationImprovements or additions to documentationmoduleThis issue has something todo with bot module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions