Skip to content

redcodemohammed/mtagbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtagbot

A Telegram bot to tag list of users. Official deploy: @matgbot

Installation

git clone git@github.com:redcodemohammed/mtagbot.git
cd matagbot
yarn

this will clone the repo and install all the dependencies.

Now create a nodemon.json file add add your token, mongodb url, port and Telegram id (get it from @myidbot)

it should look like this:

{
    "env": {
        "token": "",
        "db": "",
        "ownerId":"",
        "PORT":""
    }
}

Next start the bot using the dev command:

yarn dev

Commands

Command Role Available at Description
/groups Owner Private Show list of groups the bot has joined.
/leave Owner Private Followed by group id, the bot will leave that group and delete it from the database.
/spam Owner Groups Tag everyone in tag list multiple times.
/adduser Admin Groups Add users to tag list.
/removeuser Admin Groups Remove users from tag list.
/clear Admin Groups Remove all users from tag list.
/tag Everyone Groups Tag everyone in the tag list. You can also send @all.
/list Everyone Groups List everyone in the tag list, without tagging them.
/addme Everyone Groups Add you to the tag list.
/removeme Everyone Groups Remove you from the tag list.

How to use some commands

/adduser

Use this command to add new users to the tag list, by replying to their message or by adding their usernames after the command.

example

/adduser @redcode9000 @mohammed92001

/removeuser

Use this command to remove users from the tag list, by replying to their message or by adding their usernames after the command.

example

/removeuser @redcode9000 @mohammed92001

/spam

Use this command to tag users from the list n times.

example

/spam 4

@admins

Use this command to tag all the admins in the chat.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published