All Projects → aprosvetova → silencebot

aprosvetova / silencebot

Licence: WTFPL license
Silence Bot for your Telegram supergroups

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to silencebot

DDoS-Script
A script written in perl for ddos ​​with automatic detection of open and vulnerable port that gives up to 1.5 gb packages / s
Stars: ✭ 30 (+57.89%)
Mutual labels:  flood
overload
📡 Overload DoS Tool (Layer 7)
Stars: ✭ 167 (+778.95%)
Mutual labels:  flood
ddos
Simple dos attack utility
Stars: ✭ 36 (+89.47%)
Mutual labels:  flood
twitter-flood-generator
Simple Command Line Utility for Generating Twitter Floods
Stars: ✭ 61 (+221.05%)
Mutual labels:  flood
afterflood.in
A crowd sourced data hub created during Kerala Flood with information regarding all the Do's and don'ts, waste management, personal hygiene and every other aspect which needs to be kept in mind while moving back home after the flood
Stars: ✭ 36 (+89.47%)
Mutual labels:  flood
synflood
Start a SYN flood attack to an ip address.
Stars: ✭ 27 (+42.11%)
Mutual labels:  flood
lisflood-code
Lisflood OS - LISFLOOD
Stars: ✭ 62 (+226.32%)
Mutual labels:  flood
pixelpwnr
🎆 Insanely fast pixelflut client for images and animations written in Rust.
Stars: ✭ 50 (+163.16%)
Mutual labels:  flood
pixelpwnr-server
🎆 Blazingly fast GPU accelerated pixelflut server written in Rust.
Stars: ✭ 43 (+126.32%)
Mutual labels:  flood
Cnblogs Theme Silence
📖 一款专注于阅读的博客园主题
Stars: ✭ 1,668 (+8678.95%)
Mutual labels:  silence

Silence Bot for Telegram supergroups

Silence Bot allows you to calm down all chat participants by muting them temporarily.

Just add the bot to your supergroup, give it message deletion and user restriction rights and you're all set. If you give it a right to pin messages, the bot will pin "Silence mod enabled" messages.

Use /silence to enable silent mode.

All non-admin messages will be deleted in silent mode, any user who tries to send a message will get a temporary read-only restriction.

Use /silence again to disable silent mode.

All users will be unrestricted automatically and be able to chat.

Use /switchlang to switch between Russian and English

Please note that the bot requires running Redis instance to store data.

I'm very new to Go, so I'll be happy if you make some pull requests.

Building for all platforms

Make sure you have Go installed and just run

./build.sh

Building manually

Install dependencies

go get ./...

And then build

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-s -w -extldflags "-static"' -o silencebot

Running

Use ./silencebot -t <YOUR_TELEGRAM_TOKEN> to start the bot.

By default it connects to localhost:6379 Redis instance without password and selects db 0. You can customize this behavior, check ./silencebot -h for all arguments.

Running as a background service

There are two ways as for now: Docker compose and systemd service

Don't forget to replace token!

Docker compose is ready to use, but not recommended for stable environments as long as redis is running inside Docker.

systemd service example (recommended)

TODO

  • Embedded service autoinstall
  • Minimal hidden admin commands (/stats, /health, /uptime etc.)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].