Adityarathod123 / Go-Filter-Bot

A Superfast Filter Bot Written in Go with Global Filter Support.

Home Page:https://go-filter-bot.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoFilterBot telegram badge Go Report Card Go Build License: GPL v3

A Simple, Superfast and Serverless Filter Bot Written in Go with Global Filters and Autodelete support. The repository can be hosted on vercel as a serverless application with close to no downsides.

Commands

/start    - Shows a start message                    [Group/DM]
/about    - Shows an about message                   [Group/DM]
/help     - Shows a help message                     [Group/DM]
/filter   - Create a new filter for a word or phrase [Group/Connected DM]
/stop     - Stop an existing filter                  [Group/Connected DM]
/gstop    - Stop an existing global filter           [Admin DM]
/filters  - View all the filters saved for a chat    [Group/Connected DM]
/gfilter  - Create a new global filter that will work in all chats [Admin DM]
/gfilters - View all the saved global filters        [All]
/filter   - Create a new filter for a word or phrase [Group/Connected DM]
/broadcast - Broadcast a message to all bot users     [Admin DM]
/concast  - Broadcast a message to connected users   [Admin DM]

Variables

Variables can also be loaded by creating a .env file at the root of the repository. See .env.sample to see the format to use.

  • BOT_TOKEN : Bot token obtained by creating a bot from @BotFather.
  • MONGODB_URI : MongoDB URI. Get this value from mongoDB. For more help watch this video.
  • ADMINS : Telegram user ids' of bot admins seperated by spaces.
  • MULTI_FILTER : Set to True if multiple filters should be processed for a single message (don't add on serverles).
  • AUTO_DELETE: Time in minutes after which a filter result should be automatically deleted. for ex: 60 for 1hour (won't work serverless).
  • PORT : The port on which the webapp should run (use 10000 on render)

Deploy

Deploy To Vercel

Follow these instructions to deploy this repo to vercel

  1. Fork this repository 🍴
  2. Go to your vercel dashboard and create a Add New > Project
  3. Fill in the BOT_TOKEN and MONGODB_URI environment variables
  4. Click Deploy and wait
  5. Open your app and put in your bot token and click Connect

Deploy To Heroku


Deploy

Deploy To Scalingo


Deploy on Scalingo

Deploy To Render


deploy-to-render

Make sure to have the following options set :

Environment

Go

Build Command

go build .

Start Command

./Go-Filter-Bot

Advanced >> Health Check Path

/

Deploy To Koyeb


deploy-to-koyeb

You must set the Run command to :

./bin/Go-Filter-Bot

Deploy To Okteto


deploy-to-okteto

Deploy To Railway


deploy-to-railway

Run Locally/VPS

You must have the latest version of go installed first

git clone https://github.com/Jisin0/Go-Filter-Bot
cd Go-Filter-Bot
go build .
./Go-Filter-Bot

Support

Ask any doubts or help in our support chat. telegram badge

Join our telegram channel for more latest news and cool projects telegram badge

Thanks

Disclaimer

GNU General Public License 3.0
Licensed under GNU GPL 3.0.. Selling The Codes To Other People For Money Is Strictly Prohibited.

About

A Superfast Filter Bot Written in Go with Global Filter Support.

https://go-filter-bot.vercel.app

License:GNU General Public License v3.0


Languages

Language:Go 83.8%Language:HTML 16.0%Language:Dockerfile 0.1%Language:Procfile 0.0%