{"id":17862108,"url":"https://github.com/lekoowo/telegram-music-bot","last_synced_at":"2025-03-20T23:30:43.378Z","repository":{"id":43674461,"uuid":"96601074","full_name":"lekoOwO/Telegram-Music-Bot","owner":"lekoOwO","description":"A Telegram music catalog bot.","archived":false,"fork":false,"pushed_at":"2022-06-26T07:20:04.000Z","size":40,"stargazers_count":14,"open_issues_count":3,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T18:35:05.562Z","etag":null,"topics":["music-bot","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lekoOwO.png","metadata":{"files":{"readme":"README-zh_tw.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-08T06:40:58.000Z","updated_at":"2023-11-19T19:08:52.000Z","dependencies_parsed_at":"2022-08-22T19:00:28.350Z","dependency_job_id":null,"html_url":"https://github.com/lekoOwO/Telegram-Music-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekoOwO%2FTelegram-Music-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekoOwO%2FTelegram-Music-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekoOwO%2FTelegram-Music-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekoOwO%2FTelegram-Music-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lekoOwO","download_url":"https://codeload.github.com/lekoOwO/Telegram-Music-Bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244710401,"owners_count":20497238,"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","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":["music-bot","telegram","telegram-bot"],"created_at":"2024-10-28T08:50:37.012Z","updated_at":"2025-03-20T23:30:43.111Z","avatar_url":"https://github.com/lekoOwO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Telegram 音樂 bot\n\n[![部屬到 OpenShift](http://launch-shifter.rhcloud.com/launch/light/部屬到.svg)](https://openshift.redhat.com/app/console/application_type/custom?\u0026cartridges[]=python-3.5\u0026initial_git_url=https://github.com/rexx0520/Telegram-Music-Bot\u0026name=Telegram%20Music%20Bot)\n\n## 簡介\n\n這是一個 Telegram 的 音樂 Bot\n\n由 [szastupov/musicbot](//github.com/szastupov/musicbot) 改進而成。\n\n### 改進項目\n\n- 重寫的搜尋邏輯，支援模糊搜尋。\n\n- 支援更多格式\n\n- 支援搜尋參數，可限定藝術家、曲名和檔案格式\n\n- Log Channel 支援\n\n- 管理員功能，支援刪除資料\n\n## 用法\n\n輸入關鍵字來搜尋音樂資料庫，傳送音樂檔案以增加至資料庫。\n\n輸入 `/help` 來獲取說明\n\n在關鍵字後輸入`type:TYPE`來限定音樂格式，像這樣:\n\n\n\u003e```棒棒勝 type:flac```\n\u003e\n\u003e```棒棒勝 type:mp3```\n\u003e\n\u003e```棒棒勝 type:mpeg```\n\n若同時想搜尋作者和曲名，請用 `\u003e` 隔開 (預設為作者、曲名都納入搜尋)，像這樣:\n\n\n\u003e```棒棒勝\u003e洨安之歌```\n\n也可以搭配`type`指令，像這樣:\n\n\n\u003e```棒棒勝\u003e洨安之歌 type:flac```\n\n輸入 `/stats` 來獲取 bot 資訊。\n\n用 `/music` 指令來在群聊內使用棒棒勝 Music Bot，像這樣:\n\n\n\u003e```/music 棒棒勝```\n\n對於一個音樂文件回覆 `/add` 來新增至資料庫。\n\n丟進音樂頻道的歌曲將會被同步至資料庫。\n\nlog 頻道的管理員將獲得 Bot 管理員權限。\n\n### 管理員指令:\n\n\u003e```/delete 棒棒勝```\n\n`/admin` 可以看到目前的管理員列表。\n\n## 環境變數\n\n**API_TOKEN** : Bot 的 API Token\n\n**BOT_NAME** : Bot 的名字\n\n\n**CHANNEL** : 音樂頻道 ID\n\n**CHANNEL_NAME** : 音樂頻道的名字\n\n**LOGCHN_ID** : log 頻道的 chat ID (記得帶負號)\n\n\n**REST_PORT** : REST API 的埠\n\n**REST_HOST** : REST API 的主機IP，通常是 `0.0.0.0`\n\n\n**MONGO_HOST** : MongoDB 的網址\n\n例如 : `mongodb://user:pwd@host/python`\n\n**MONGO_DB_NAME** : MongoDB 資料庫的名字\n\n**LANG** : 語言設定\n\n可用語言:zh-TW\n\n歡迎發 PR 新增翻譯!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoowo%2Ftelegram-music-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flekoowo%2Ftelegram-music-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoowo%2Ftelegram-music-bot/lists"}