{"id":30629828,"url":"https://github.com/cfunkz/watch2gether-discord-bot","last_synced_at":"2026-05-06T18:32:57.563Z","repository":{"id":306821755,"uuid":"1027322603","full_name":"cfunkz/Watch2Gether-Discord-Bot","owner":"cfunkz","description":"A simple Watch2Gether room manager for Discord.","archived":false,"fork":false,"pushed_at":"2025-07-27T21:17:59.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T21:31:44.644Z","etag":null,"topics":["aiohttp","aiosqlite","appcommands","bot","bots","botsfordiscord","discord","discord-bot","discordpy","discordpython","python","python3","sqlite","sqlite3","watch2gether"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfunkz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T19:27:54.000Z","updated_at":"2025-07-27T21:18:03.000Z","dependencies_parsed_at":"2025-07-27T21:31:47.160Z","dependency_job_id":"b6b53266-3457-462e-aa11-7030870fc5d9","html_url":"https://github.com/cfunkz/Watch2Gether-Discord-Bot","commit_stats":null,"previous_names":["cfunkz/watch2gether-discord-bot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cfunkz/Watch2Gether-Discord-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfunkz%2FWatch2Gether-Discord-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfunkz%2FWatch2Gether-Discord-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfunkz%2FWatch2Gether-Discord-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfunkz%2FWatch2Gether-Discord-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfunkz","download_url":"https://codeload.github.com/cfunkz/Watch2Gether-Discord-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfunkz%2FWatch2Gether-Discord-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272904567,"owners_count":25012876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","aiosqlite","appcommands","bot","bots","botsfordiscord","discord","discord-bot","discordpy","discordpython","python","python3","sqlite","sqlite3","watch2gether"],"created_at":"2025-08-30T20:36:06.145Z","updated_at":"2026-05-06T18:32:57.489Z","avatar_url":"https://github.com/cfunkz.png","language":"Python","funding_links":["https://ko-fi.com/cfunkz81112)!","https://ko-fi.com/cfunkz81112"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.ibb.co/TMnHDzL2/watchparty.png\" alt=\"Watch2Gether Bot Logo\" width=\"120\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eWatch2Gether Discord Bot\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/cfunkz/Watch2Gether-Discord-Bot/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/cfunkz/Watch2Gether-Discord-Bot?style=social\" alt=\"GitHub stars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/cfunkz/Watch2Gether-Discord-Bot/network/members\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/cfunkz/Watch2Gether-Discord-Bot?style=social\" alt=\"GitHub forks\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/cfunkz/Watch2Gether-Discord-Bot/issues\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/cfunkz/Watch2Gether-Discord-Bot\" alt=\"GitHub issues\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 📚 Table of Contents\n\n- [Features](#features)\n- [Setup](#setup)\n- [Usage](#usage)\n  - [Admin Panel](#admin-panel)\n  - [Manage Rooms](#manage-rooms)\n- [Images](#images)\n- [About the Developer](#about-the-developer)\n\n# Features\n- Create new temporary rooms via Watch2Gether.\n- Link existing Watch2Gether rooms.\n- Validate and verify Watch2Gether URLs using **regular expressions (regex)**.\n- Manage multiple rooms per user with limits.\n- Add videos to playlist.\n- Instant play a video.\n- Download \u0026 Dump local database and reload bot cogs via admin panel.\n- Uses **aiohttp** for asynchronous HTTP requests.\n- Uses **aiosqlite** for asynchronous database operations, enabling concurrency.\n- Employs Discord **modals**, **select menus**, and **options** for interactive user input and command handling.\n- Simple Admin Panel for database management and reloading cogs.\n- Custom logger\n  \n# Setup\n\n**API KEY:** Get your Watch2Gether API key from your account page:  \n[W2G Profile Page](https://w2g.tv/en/account/edit_user/)\n\n**Discord Bot Token:** Create a bot on the Discord Developer Portal:  \n[DISCORD API](https://discord.com/developers/applications)\n\n```bash\ngit clone https://github.com/cfunkz/Watch2Gether-Discord-Bot.git\ncd Watch2Gether-Discord-Bot\n```\n\nCreate and activate a Python virtual environment\n\n```bash\npython3 -m venv .venv\nsource .venv/bin/activate  # Linux/macOS\n.\\.venv\\Scripts\\activate   # Windows PowerShell\n```\n\nInstall dependencies\n\n```bash\npip install -r requirements.txt\n```\n\nConfigure your environment\n\nEdit `config.py` with:\n\n```python\nW2G_API_KEY = \"WATCH2GETHER KEY\"\nBOT_TOKEN = \"DISCORD TOKEN\"\nDB_FILE = \"user_rooms.db\" # Database file path\nGUILD_ID = 1234567890000000001  # Your server ID\nROLE_ID = 1234567898098766554   # Admin Role ID that should have access\nMAX_LOG_SIZE = 33554432  # Maximum LOG SIZE in bytes (32 MB)\nROTATE_LOGS = 5  # HOW MANY LOGS TO ROTATE\nLOG_FILE = 'discord.log'\nDEFAULT_AVATAR = \"https://i.ibb.co/TMnHDzL2/watchparty.png\"  # Default avatar URL\nMAX_USER_ROOM = 10\n```\n\nRun the bot\n\n```bash\npython main.py\n```\n\n\u003e ⚠️ **Note**: Ensure you have the required permissions for the bot in your Discord server. Don't forget to set admin role and guild in the `.env` or `config.py`.\n\n# Usage\n\n## Admin Panel\nRun `/admin` to open a private panel with buttons for:\n\n- Downloading or dumping the database\n- Checking ping\n- Reloading cogs\n\n## Manage Rooms\nUse the `/watch` command to manage Watch2Gether rooms.\nThe bot can create a temporary room, link existing rooms, share, delete rooms, add to playlist and instant play a video from discord.\n\n# Images\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.ibb.co/XfDqv714/image.png\" alt=\"Main\" width=\"700\" /\u003e\n\u003c/p\u003e\n\n\u003ctable align=\"center\"\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/2970cc5d-ce0c-45e9-adaa-7c4ef7c31a22\" alt=\"Create\" width=\"300\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/c790ec02-1804-4511-a99a-7537f998b511\" alt=\"Add\" width=\"300\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/16ca142b-7bd2-4b71-9875-2e7b703f9e2a\" alt=\"Room List\" width=\"300\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/c00c9fdf-ec81-4dcc-921a-90d919eaa0de\" alt=\"Share Invite\" width=\"300\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/c66de142-295c-4500-af0a-84441dda6f7c\" alt=\"Delete Rooms\" width=\"300\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://i.ibb.co/8Z4GBfy/image.png\" alt=\"Admin Panel\" width=\"300\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/user-attachments/assets/b92ef5b0-6928-492d-b76f-65ee91d22fbb\" alt=\"Logger\" width=\"300\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## About the Developer\n\nBuilt with ❤️ by [cfunkz](https://github.com/cfunkz) — learning the wizardry of Debian, Python \u0026 SQL.  \nIf this project helped you, consider ⭐ starring the repo or [buying me a coffee](https://ko-fi.com/cfunkz81112)!\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ko-fi.com/cfunkz81112\"\u003e\n    \u003cimg src=\"https://ko-fi.com/img/githubbutton_sm.svg\" alt=\"ko-fi\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfunkz%2Fwatch2gether-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfunkz%2Fwatch2gether-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfunkz%2Fwatch2gether-discord-bot/lists"}