diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2024-05-05 14:40:13 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2024-05-05 14:40:13 +0300 |
| commit | aff75201ff079fd1d744cab3fcb0ed068f7790ee (patch) | |
| tree | 5ecc53256c323e344cb8b5b717fb5ed3de0fea74 /README.md | |
| parent | 3aec03c162548c107d25398da0e6fcd40ae69484 (diff) | |
Add readme
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..652f813 --- /dev/null +++ b/README.md @@ -0,0 +1,104 @@ +# Sekoohaka + +Telegram Image Board Bot written in POSIX Shell (dash) + +## Features + +* Authorization +* Inline pool search +* Inline post search +* Inline tag search +* Inline paging +* Inline autopaging +* Inline resume +* Inline quick buttons +* Original file download +* Post information view +* Post tags view +* Inline shortcuts +* Inline shortcuts saving + +## Requirements + +BusyBox is a hard-coded dependency and should not be replaced with alternatives! + +* dash +* busybox +* curl +* jq +* recode + +For distribution specific installation commands follow [command-not-found](https://command-not-found.com/). + +## Deployment + +It is highly recommended to run it with an empty environment to avoid variable conflict: `env -i ./bot.sh` or `env -i PATH="${PATH}" ./bot.sh` for Termux. +For better performance, it is recommended to use a locally deployed [Telegram Bot API](https://github.com/tdlib/telegram-bot-api) server. + +### Available options + +``` + -h Show help information + -a <addr> Telegram Bot API address, default: api.telegram.org + -s <size> Max file size allowed to send with URL, default: 10485760 + -p <addr> Proxy address for external requests +``` + +## Usage + +### Fields description + +* `[command]` - Inline command +* `[b]` - Image board +* `[page]` - Search page number +* `[options]` - Search options +* `[tags]` - Search tags +* `[name]` - Search pool or tag name +* `[id]` - Post ID +* `[query]` - Inline query +* `[login]` - Image board login +* `[key]` - Image board API key or password + +### Inline commands + +* `help` - Send help message +* `l [b] [page] [options] [name]` - Pool search +* `p [b] [page] [options] [tags]` - Post search +* `t [b] [page] [options] [name]` - Tag search +* `original [b] [id]` - Get original file of post +* `post [b] [id]` - Get infromation of post +* `short [query]` - Create inline shortcut +* `shorts` - List saved inline shortcuts + +### Search options + +* `a` - Enable autopaging (lpt) +* `m` - Show more metadata (p) +* `p` - Show gif/video as preview only (p) +* `q` - Add quick buttons (lpt) + +### Commands + +* `/help` - Send help message +* `/authorize [b] [login] [key]` - Authorize to image board +* `/original [b] [id]` - Get original file of post +* `/post [b] [id]` - Get infromation of post +* `/short [query]` - Create inline shortcut +* `/shorts` - Manage saved shortcuts +* `/stop` - Remove all user data + +### Inline examples + +* `p d -mq sakurada_shiro` +* `t d *genshin*` +* `original d 5080413` +* `short p d 1 -amq rating:g blue_archive` + +### Supported image boards + +* `d` - [Danbooru](https://danbooru.donmai.us/) (auth) (lpt) +* `g` - [Gelbooru](https://gelbooru.com/) (auth) (pt) +* `i` - [Idol Complex](https://idol.sankakucomplex.com/) (auth) (lpt) +* `k` - [Konachan.com](https://konachan.com/) (auth) (lpt) +* `s` - [Sankaku Channel](https://chan.sankakucomplex.com/) (auth) (lpt) +* `y` - [yande.re](https://yande.re/) (auth) (lpt) |
