Skip to content

Friends-Zone/bot

 
 

Repository files navigation

SpamBlockers

Requirements

  • Node.js (v12.x or later is recommended) with npm (latest version recommended)
  • MongoDB server
  • Telegram Bot API token from BotFather
  • Log channel (optional)

Setup

  1. Clone the Git repository to your machine then install dependencies.
  2. Edit the .env.sample file and save it as .env.
  3. Make a admins.json file with an array of Telegram user IDs of admins you want to use admin-only commands.
  4. Finally, fire up the console and type npm start to hit the road.

Commands Reference

Command Permissions Description
/clean Admins Cleans up the clutter collected from database.
/gban <userid/reply> <reason> Admins Globally bans a user with a valid reason.
/ungban <userid/reply> <reason> Admins Globally unbans a user.
/stats Admins Pull global stats from bot database.
/stat <userid/reply> Everyone Pull stats for a user from bot database.
/start Everyone Checks if the bot is dead.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%