luisg0nc / banger-link Goto Github PK
View Code? Open in Web Editor NEWA Telegram bot to enhance collaborative music sharing on a group chat. πΆπΆ
Home Page: https://bangerlink.luisg.me/
License: MIT License
A Telegram bot to enhance collaborative music sharing on a group chat. πΆπΆ
Home Page: https://bangerlink.luisg.me/
License: MIT License
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'
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. π€
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 π
@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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.