Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rauljordan/silent-deny
https://github.com/rauljordan/silent-deny
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rauljordan/silent-deny
- Owner: rauljordan
- Created: 2022-10-27T01:13:26.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T15:11:37.000Z (about 2 years ago)
- Last Synced: 2024-06-19T18:00:41.450Z (5 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Silent Deny Discord Bot
Open source code for a Discord bot that can silently delete messages that match a deny list of regular expressions.
Helpful to relieve crypto server spam! It does not notify the user of message deletion.A bot invite to any public server can be found [here](https://discord.com/api/oauth2/authorize?client_id=1034999125093142669&permissions=8&scope=bot). The bot needs manage messages permissions.
## Install
Go 1.18 or Docker
**With Go**
```
git clone http://github.com/rauljordan/silent-deny && cd silent-deny
go build .
./silent-deny -token= -denylist=/path/to/denylist.txt
```**With Docker**
```
docker run rauljordan/denylist -token= -denylist=/path/to/denylist.txt
```## Usage
```
Usage of ./silent-deny:
-denylist string
Filepath to denylist of regular expressions, separated by new line delimiters
-token string
Discord bot token
```A denylist file is a simple text file of line-separated regular expressions to match messages. Example:
```
uni-airdrop\.org
.*airdrop
uni-airdrop
```