Git Product home page Git Product logo

sekoohaka's Introduction

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

Commands

BusyBox is a hard-coded dependency and cannot be replaced with alternatives!

  • dash
  • busybox
  • curl
  • jq
  • recode

For distribution specific installation commands follow command-not-found.

BusyBox functions

  • base64
  • bc
  • cat
  • cut
  • date
  • find
  • grep
  • ls
  • mkdir
  • rm
  • sed
  • seq
  • sha1sum
  • sleep
  • stat
  • tr

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 server.

Available options

  -h            Show help information
  -l            Same as -a localhost:8081 -s 20971520
  -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
  • [name] - Search pool or tag name
  • [tags] - Search tags
  • [id] - Post ID
  • [query] - Inline query
  • [login] - Image board login or username
  • [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

  • short p d -mq sakurada_shiro_(hy_plus)
  • original d 4507929
  • p d 1 -a ringouulu
  • t d *genshin*

Supported image boards

sekoohaka's People

Contributors

sarisan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.