Update Chanban/README.md
This commit is contained in:
+23
-19
@@ -10,15 +10,14 @@ A comprehensive channel management script for Eggdrop bots that provides both pu
|
||||
- Automatic banmask generation with multiple mask types
|
||||
- Special handling for uid/sid hosts
|
||||
- Anti-abuse protection (cannot ban/kick the bot itself)
|
||||
- Ban list uploads to pastebin service (configurable)
|
||||
- Clean channel output (banlist sent via pastebin link)
|
||||
- Ban list uploads to a configurable file hosting service
|
||||
- Clean channel output (banlist sent via upload link)
|
||||
- Proper access control using Eggdrop flags
|
||||
- Efficient mode queueing with pushmode
|
||||
|
||||
## Requirements
|
||||
- Eggdrop 1.6.x or higher
|
||||
- curl command-line tool (for pastebin uploads)
|
||||
- netcat (optional, for alternative paste methods)
|
||||
- curl command-line tool (for ban list uploads)
|
||||
|
||||
## Installation
|
||||
1. Copy the script to your Eggdrop scripts directory
|
||||
@@ -35,18 +34,19 @@ All configuration variables are at the top of the script:
|
||||
| banReason | Reason for permanent bans | "User has been banned from the channel." |
|
||||
| tBanReason | Reason for temporary bans | "User has been temporarily banned from the channel." |
|
||||
| kickReason | Reason for kicks | "Your behaviour is not conducive to the desired environment." |
|
||||
| revengeKick | Message when someone tries to ban/kick the bot | "Very funny... NOT!" |
|
||||
| revengeKick | Message when someone tries to ban/kick the bot | "Very funny... NOT" |
|
||||
| tBanDuration | Temporary ban duration in minutes | "30" |
|
||||
| upCommand | Command used to upload the ban list | "curl -s -F file=@- https://x0.at/" |
|
||||
| banMask | Banmask type (0-9) | "2" |
|
||||
|
||||
### Banmask Types
|
||||
- 0: \*!user@host
|
||||
- 1: \*!*user@host
|
||||
- 2: \*!*@host
|
||||
- 1: \*!\*user@host
|
||||
- 2: \*!\*@host
|
||||
- 3: \*!\*user@*.host
|
||||
- 4: \*!\*@*.host
|
||||
- 5: nick!user@host
|
||||
- 6: nick!*user@host
|
||||
- 6: nick!\*user@host
|
||||
- 7: nick!\*@host
|
||||
- 8: nick!\*user@*.host
|
||||
- 9: nick!\*@*.host
|
||||
@@ -78,18 +78,22 @@ Users need either:
|
||||
- Global +o flag, OR
|
||||
- Channel +o flag on the specific channel
|
||||
|
||||
## Customizing the Pastebin Service
|
||||
The script uses curl to upload ban lists. To change the pastebin service:
|
||||
## Customizing the Upload Service
|
||||
The upload command is controlled by the `upCommand` configuration variable. The ban list file is piped into the command via stdin, so your command must read from stdin. The default uses x0.at:
|
||||
|
||||
1. Locate this line in the banlist procs:
|
||||
set result [exec cat $filename | curl -s -F file=@- http://hotpaste.0bin.xyz/]
|
||||
```
|
||||
variable upCommand "curl -s -F file=@- https://x0.at/"
|
||||
```
|
||||
|
||||
2. Replace with your preferred service:
|
||||
# For termbin.com
|
||||
set result [exec cat $filename | nc termbin.com 9999]
|
||||
|
||||
# For your own pastebin
|
||||
set result [exec curl -s -F file=@- http://your-pastebin.com/upload]
|
||||
To use a different service, replace the value with any command that reads from stdin and returns a URL:
|
||||
|
||||
```
|
||||
# For termbin.com
|
||||
variable upCommand "nc termbin.com 9999"
|
||||
|
||||
# For your own pastebin
|
||||
variable upCommand "curl -s -F file=@- https://your-pastebin.com/upload"
|
||||
```
|
||||
|
||||
## Important Notes
|
||||
- Do not modify code below the configuration section unless you understand TCL
|
||||
@@ -98,7 +102,7 @@ The script uses curl to upload ban lists. To change the pastebin service:
|
||||
- Ban lists are uploaded as text files and a link is returned to the user
|
||||
|
||||
## Troubleshooting
|
||||
- "Failed to upload ban list": Check that curl is installed and the pastebin service is accessible
|
||||
- "Failed to upload ban list": Check that curl is installed and the upload service is accessible
|
||||
- Commands not working: Verify the user has appropriate flags (o|o)
|
||||
- Bot not responding: Ensure the script is loaded and binds are active
|
||||
|
||||
|
||||
Reference in New Issue
Block a user