Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikkhvat/bot-profanity-filter
This is a Telegram bot written in Golang using the telegram-bot-api.
https://github.com/nikkhvat/bot-profanity-filter
golang telegram-bot
Last synced: about 1 month ago
JSON representation
This is a Telegram bot written in Golang using the telegram-bot-api.
- Host: GitHub
- URL: https://github.com/nikkhvat/bot-profanity-filter
- Owner: nikkhvat
- License: agpl-3.0
- Created: 2023-07-14T09:15:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-14T09:16:55.000Z (over 1 year ago)
- Last Synced: 2023-09-18T18:08:57.567Z (over 1 year ago)
- Topics: golang, telegram-bot
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Bot for Profanity Filter (Golang)
This project is a Telegram bot written in Golang using the telegram-bot-api. The main feature of this bot is its profanity filter functionality - when added to a group, it checks new messages for any profanity or banned words and deletes any message containing such language.
## Usage
Before running the bot, make sure to replace the "TELEGRAM_BOT_TOKEN" placeholder in the .env file with your actual bot token from the BotFather on Telegram.
You can supplement the forbidden words by writing them to the `./words.json` file
Example:
```json
{
"forbidden_words": [
"your",
"forbidden",
"words"
]
}
```To start the bot, run:
```sh
make start
```To start in dev mode:
```sh
make dev
```