Page MenuHomePhabricator (Chris)

mtfutilsbot
Updated 1,549 Days AgoPublic

Basic Function

Known outputs

  • mediagroup
    • with image
    • with video
    • with other?
  • sound
  • voice note
  • music (tagged, art etc)
  • pictures
  • locations
  • live locations
  • plain text (mkdwn etc)
  • moderation actions
  • profile actions
  • links and other entities
  • menus (buttons with callbacks)
  • payments
  • games

Known decorators

  • ???
  • ???

Known side effects

  • user is banned (in bot)
  • user is promoted (in bot)
  • logging
  • ???
  • object detection
  • image classification
  • 3rd party stuff (apis etc)

Known inputs

  • all outputs
  • commands, in the text, but they're dynamic like /whois12345
  • chat_id
  • video data
  • video filename/location
  • USER AGENT
  • precalculated data -- markov chains etc
  • image data
  • audio data
  • image location
  • audio location
  • cookies

Wanted tools

  • ffmpeg
  • ???

Payments/buttons.etc

  • callback query?

Relationship

Znumber in commandparametersreturns several links
Deoldifychat iduser idreply to mesagemessage (id)
Colourizeimage from chatreturns image
Chatsinput text (wildcard)
Invparsemode, title, descAPI/Provider tokenpayload, start paramcurrency, prices, photo URL
Forceneeds reply, works backwards(!!)
GenericCommand/z, /whois etccatches typos, too
GenericMessageinput textplain text transformations and hidden commandsscans for links and documentsdeamp, snarkiness, HAS TO BE AWARE OF RECIPIENTS because there is NO SETTINGS/CONFIG
gifbitrate, frameratelength? scale? arbitrary args?
gifhqbetter version of above, duplicated codeno params lol
HELPNEEDS PRIVATE CHAT?
htmlwhat was i doing...?
Inlinequerywants: universal search? KYM?can i run normal commands inside here? If so, does that mean i can accept alternative delimiters?
inspmotivates you, seriouslya bit fluffy, pcreturns pic+buttonedits images
jsondumpbest debug tool -- how practical is it with mtproto api?code can be ripped from bot api if needed
mp3needs reply, sends ripped soundtags would be nicecan this be generalized?
nsfwneeds reply, returns nsfw likelihood
pizza (kfc)no args, scrapes, returns buttons
precheckoutquerybot api asks if ok. we don't use
reverseneeds reply, general a/v processing
rmwant /delete, but clashes with matticate etc
saucelinks to libs. greatpls link to project page
spsends shitpost. good candidate for plugins
stabvidstab algorithmplus easter egg (see slap)
start??? hidden params?
stickersends a sticker
testscience, with cake at the end
tldrreturn summary of article. not very reliable
transliticu latinizationadd options. ID input language?
trimtransformation on AV
trimtoduplicate code, but more intuitive interface for most people
vidlike /gif, but no effort is made to remove sound or send as gif
Whatsnewinformal changelogcan it use other sources?
Whoami/whois me

Non-commands I like

  • time
  • location
  • setloc
  • lastfm (but can we expand this to some other interface? keep a list/channel updated?)
  • mock/sponge/pasta etc. overdone?
  • lookups - pubchem? azlyrics? musicbrainz? fdroid/playstore?
  • ban etc. not the goal of mtfutilsbot, but interesting

Lackluster implementations

  • roles/groups incl bans
  • simultaneous requests for identical and long running operations
  • all the new kinds of errors!
  • configuration (everything is hard-coded)
  • stdin vs arguments: let me attach functions to captions, or prepend them to messages
  • allow media transformations on links
  • summary only works on websites (and only tries 1 method)

Some sites needing special handling of some kind

  • bestgore
  • radikal
  • giphy
  • gfycat
  • deathaddict
  • imgur
  • bitchute
  • pixeldrain
  • saidit
  • anything with galleries

Wanted for long running operations

  • Database (read cache) so that repeated tasks turn into lookups (eg, 2 users request same video) -- not handled well atm: simultaneous requests
  • queue?
  • out-of-process execution
Tags
  • Unknown Object (Project)
Referenced Files
None
Subscribers
Unknown Object (Project)
Last Author
chrisw
Last Edited
Jun 10 2021, 10:15 PM