Update Chanban/README.md
Fine grain some examples and explanations
This commit is contained in:
+16
-1
@@ -30,7 +30,7 @@ All configuration is done at the top of `cmgmt.tcl`.
|
||||
|
||||
| Variable | Default | Description |
|
||||
|---|---|---|
|
||||
| `locale` | `en` | Language to use. Must match a file in `cmgmt_langs/` (e.g. `en`, `pt`, `it`) |
|
||||
| `locale` | `en` | Language to use. Must match a file in `cmgmt_langs/` (e.g. `en`, `pt_PT`, `it_IT`) |
|
||||
| `trigger` | `@` | Prefix for public commands |
|
||||
| `tBanDuration` | `30` | Duration of temporary bans, in minutes |
|
||||
| `upCommand` | `curl -s -F file=@- https://x0.at/` | Command used to upload the ban list. Must read from stdin |
|
||||
@@ -120,6 +120,21 @@ To change the language, set the `locale` variable in the configuration section t
|
||||
|
||||
To add a new language, copy `en.msg`, rename it to the desired locale code, and translate the strings. The `%s` placeholders must be kept in the same order as described in the comments above each entry.
|
||||
|
||||
### Custom Upload Command
|
||||
|
||||
The `upCommand` variable accepts any command that reads from stdin and returns a URL. Some examples:
|
||||
|
||||
```tcl
|
||||
# x0.at (default)
|
||||
variable upCommand "curl -s -F file=@- https://x0.at/"
|
||||
|
||||
# termbin.com
|
||||
variable upCommand "nc termbin.com 9999"
|
||||
|
||||
# Your own pastebin
|
||||
variable upCommand "curl -s -F file=@- https://your-pastebin.com/upload"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
Reference in New Issue
Block a user