Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```