Skip to content
Notifications You must be signed in to change notification settings

Turbash/TubeFetch

Repository files navigation

TubeFetch

TubeFetch is a Discord bot that allows users to download YouTube videos directly from Discord, with support for video quality selection, subtitle downloads, and large file handling.


Features

  • Slash Commands for a modern Discord experience
  • Choose video quality (e.g., 360p, 720p, best, worst)
  • List available qualities and subtitles for any YouTube video
  • Download subtitles in your preferred language
  • Handles Discord file size limits: uploads large files to transfer.sh and provides a temporary download link
  • Ephemeral responses for privacy
  • Robust error handling and file cleanup

Commands

  • /fetch url: quality: subtitles: language:t; language:<lang>
    • Download a YouTube video at the specified quality and (optionally) subtitles.
  • /qualities url:RL>
    • List available video qualities for a YouTube link.
  • /subtitles url:RL>
    • List available subtitle languages for a YouTube link.
  • /help
    • Show help and usage instructions.

Getting Started

1. Clone the repository

git clone https://github.com/yourusername/TubeFetch.git

cd TubeFetch

2. Install dependencies

pip install -r requirements.txt

3. Set up your Discord bot token

  • Create a .env file in the project root:
    TOKEN=your_discord_bot_token_here
    
    

4. Run the bot

python3 bot.py

Notes

  • If a video is too large for Discord, TubeFetch will upload it to transfer.sh and provide a temporary download link (valid for 14 days).
  • The bot introduces itself when joining a new server.
  • All commands are slash commands for ease of use.

License

MIT License


Contributing

Pull requests and suggestions are welcome! Please open an issue or submit a PR.


Credits


Enjoy downloading YouTube videos right from your Discord server!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages