Code Monkey home page Code Monkey logo

banger-link's People

Contributors

luisg0nc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashrafmdmatin41

banger-link's Issues

Ignore messages which do not contain URLs

Currently the bot scans all messages, although it will filter the URLs from the text, it does not ignore them from the start.
The python-telegram-bot has built in filters for the message handlers, check here.

Please note, this does not break the bot, and the bot will continue to work perfectly, however you will be able to detect this happening in the logs:

2023-08-07 21:14:46,898 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1173, in process_update
    await coroutine
  File "/usr/local/lib/python3.8/site-packages/telegram/ext/_basehandler.py", line 141, in handle_update
    return await self.callback(update, context)
  File "bot.py", line 138, in search_song
    message = update.message.text
AttributeError: 'NoneType' object has no attribute 'text'

Generate Youtube Playlists from AM or Spotify Playlists

The ability to generate Youtube Playlists from Apple music or Spotify Playlists as long been a feature I would like to implement, however since I had to avoid using API keys for AM or Spotify and have to rely on scraping publicly available information, it is necessary to do some research first. πŸ€”

Download from Youtube URL Playlist

Since DJs are using the download function to easily download youtube audio. @Toni-Diesel suggested to me that the bot could accept Youtube Playlist links, download all the individual audio files from each video and then upload them to the chat.

Now having gone through the pytube documentation, there is this really nice feature that makes this implementation easy πŸ˜‰

Detect Youtube links and offer download

@freitzzz has correctly pointed out to me that the bot does not acknowledge youtube URLs, to be able to download.

This should be a relatively easy feature to do. The only major change I am seeing, is removing the blacklist and possibly adding whitelisting to URLs that should be actionable.

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.