Coder Social home page Coder Social logo

unreddit's Issues

Gifs

There sometimes happen to be gif animation posts (example), which are currently processed as images, because for all intents and purposes except the media file extension itself they are image posts.

Detect this scenario and either embed gif files as animation messages, or as links

Tests

Test success

Test fallback

  • Reddit Image
  • Imgur image
  • Reddit gif
  • Reddit video
  • Imgur gif
  • Imgur video
  • Gfycat gif
  • Gfycat video
  • Imgur gallery (?)

Audio in reddit videos

Reddit seems to process the submitted videos into HLS playlists with separate sources for audio, and only keep the video channel in the mp4 file.

Telegram doesn't support the anything but mp4 at the moment, so nothing probably can be done with it, but would still may be important to take a deeper look.

Comment links

Comment links are being parsed as if they were post links.

Decide on the maximum length and based on it, either post the comment in plaintext, or ignore it/reembed the link

Inline mode

Add inline capabilities for parsing links from all available sources

Parse the posts from the user feed

See if simply adding another regexp will do the trick. Sounds likely that some internal tweaking for "sub" detection will be required

r/Dota2

Something's different with the posts there, starting with the absent post_hint, try to figure out how to make it work regardless

Chat-based settings

  1. Add a DB
  2. Add a command to enable the "enhanced" mode
  3. For those who have enabled the enhanced mode, add some more triggers like navy seals copypasta, AskOuija detection for a "Goodbye" response, and other fun stuff
  4. Verboseness of the errors, nsfw-processing and some other things can also be configurable if chat decides to enroll

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.