Giter Site home page Giter Site logo

ajsb85 / the-guard-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thedevs-network/the-guard-bot

3.0 2.0 0.0 181 KB

The Guard, a Telegram bot to moderate groups.

Home Page: https://t.me/thedevs_bot

License: GNU Affero General Public License v3.0

JavaScript 100.00%

the-guard-bot's Introduction

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 Role Available at Description
/admin Master Everywhere Makes the user admin.
/unadmin Master Everywhere Demotes the user from admin list.
/leave <name|id> Master Everywhere Make the bot to leave the group cleanly.
/warn <reason> Admin Groups Warns the user.
/unwarn Admin Everywhere Removes the last warn from the user.
/nowarns Admin Everywhere Clears warns for the user.
/getwarns Admin Everywhere Shows a list of warns for the user.
/ban <reason> Admin Groups Bans the user from groups.
/unban Admin Everywhere Removes the user from ban list.
/addcommand Admin In-Bot Create a custom command.
/removecommand <name> Admin In-Bot Remove a custom command.
/staff Everyone Everywhere Shows a list of admins.
/link Everyone Everywhere Shows the current group's link.
/groups Everyone Everywhere Shows a list of groups which the bot is admin in.
/report Everyone Everywhere Reports the replied-to message to admins.
/commands Everyone In-Bot Shows a list of available commands.
/help | /start Everyone In-Bot How to use the bot.

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 would remove the replied-to message.

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

Roadmap


Important Note: Under the AGPL-3.0 license, if you're running your own instance, you should add a link to the source (this repository) in your bot's bio. If you're modifying this source and making your own bot, you should link to the source of your own version of the bot according to the AGPL-3.0 license. Check LICENSE for more info.

The Guard icon is from Entypo+ by Daniel Bruce.

the-guard-bot's People

Contributors

poeti8 avatar wojpawlik avatar trgwii avatar faizanakram99 avatar mkrhere avatar ajsb85 avatar

Stargazers

 avatar Roman avatar Ismael IC avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.