2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 05:37:59 +00:00
2017-09-28 22:34:55 +03:30
2017-09-21 13:57:49 +04:30
2017-09-28 15:44:30 +03:30
2017-09-21 13:57:49 +04:30
2017-09-28 15:41:06 +03:30
2017-09-20 23:17:00 +04:30
2017-09-27 23:22:06 +03:30
2017-09-28 22:34:55 +03:30
2017-09-28 19:34:01 +02:00
2017-09-28 20:29:18 +03:30

The Guard Bot

The Guard is a Telegram bot made to help admins manage their groups.

Initially created to moderate The Devs Network.

NOTE: The Guard is still in alpha phase and is not ready for production

Setup

You need Node.js (> 8.1) to run this bot.

  1. Create a bot via @BotFather and grab a token.
  2. Clone this repository or downlaod zip.
  3. Install dependencies via npm install.
  4. Copy config.example.json to config.json, fill it properly and remove comments.
  5. Start the bot via npm start.

Now you can add the bot as administrator to your groups.

Commands

Command Rule Description
/admin Master Makes the user admin.
/unadmin Master Demotes the user from admin list.
/warn <reason> Admin Warns the user.
/unwarn Admin Removes the last warn from the user.
/nowarns Admin Clears warns for the user.
/getwarns Admin Shows a list of warns for the user.
/ban <reason> Admin Bans the user from groups.
/unban Admin Removes the user from ban list.
/staff All Shows a list of admins.
/groups All Show a list of groups which the bot is admin in.
/report All Reports the replied-to message to admins.

All commands and actions are synchronized across all of the groups managed by the owner and they work with both replying and mentioning a user.

If used by reply, /ban and /warn remove the replied-to message.

The bot is still in alpha phase so feel free to open issues and ask for a feature.

Description
No description provided
Readme AGPL-3.0 2.7 MiB
Languages
JavaScript 79.6%
TypeScript 20.3%
Dockerfile 0.1%