{"id":19775216,"url":"https://github.com/kwei/discord_lyrics_robot","last_synced_at":"2025-02-28T05:28:18.350Z","repository":{"id":42325984,"uuid":"136746502","full_name":"kwei/Discord_Lyrics_Robot","owner":"kwei","description":"專屬於discord的聊天機器人，用途是查詢歌詞。","archived":false,"fork":false,"pushed_at":"2022-12-07T19:48:39.000Z","size":92426,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T01:29:38.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kwei.png","metadata":{"files":{"readme":"README.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":"2018-06-09T18:03:28.000Z","updated_at":"2020-07-30T12:53:38.000Z","dependencies_parsed_at":"2023-01-24T22:00:16.332Z","dependency_job_id":null,"html_url":"https://github.com/kwei/Discord_Lyrics_Robot","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/kwei%2FDiscord_Lyrics_Robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwei%2FDiscord_Lyrics_Robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwei%2FDiscord_Lyrics_Robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwei%2FDiscord_Lyrics_Robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwei","download_url":"https://codeload.github.com/kwei/Discord_Lyrics_Robot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241105854,"owners_count":19910705,"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":[],"created_at":"2024-11-12T05:15:18.696Z","updated_at":"2025-02-28T05:28:18.333Z","avatar_url":"https://github.com/kwei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord_Lyrics_Robot\n\n[![NPM version][shield-npm]](#)\n[![Node.js version support][shield-node]](#)\n[![Build status][shield-build]](#)\n[![Code coverage][shield-coverage]](#)\n[![Dependencies][shield-dependencies]](#)\n[![MIT licensed][shield-license]](#)\n\n\n\n[shield-coverage]: https://img.shields.io/badge/coverage-100%25-brightgreen.svg\n[shield-dependencies]: https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg\n[shield-license]: https://img.shields.io/badge/license-MIT-blue.svg\n[shield-node]: https://img.shields.io/badge/node.js%20support-0.10–5-brightgreen.svg\n[shield-npm]: https://img.shields.io/badge/npm-v3.2.0-blue.svg\n[shield-build]: https://img.shields.io/badge/build-passing-brightgreen.svg\n\n## 簡介\n```\n這是一個專屬於 Discord 的聊天機器人，利用 Discord 官方的 API 自己架設一台 BOT 並實作出搜尋歌詞的功能。\n可參照 index.js 裡面的指令引用方式自行擴增指令集。command 資料夾內是指令的檔案而 function 資料夾內是會用到的函式。\n若要自己創造一台機器人必須透過 Discord 官方申請然後取得 token 與 id 才能使用。\n``` \n[Discord developers](https://discordapp.com/developers/docs/intro)\n\n#### 可以藉由[此網址](https://discordapp.com/oauth2/authorize?client_id=619075887685697536\u0026scope=bot)將機器人引入至自己的伺服器中\n\u003c/br\u003e引入伺服器\u003c/br\u003e\u003c/br\u003e\n![link](https://github.com/kwei/Discord_Lyrics_Robot/blob/master/linkBOT.PNG)\u003c/br\u003e\n\u003c/br\u003e使用說明\u003c/br\u003e\u003c/br\u003e\n```\n輸入 $help 就能看見使用規則\n```\n\n\u003c/br\u003e查詢歌詞\u003c/br\u003e\u003c/br\u003e\n![search](https://github.com/kwei/Discord_Lyrics_Robot/blob/master/lyrics.PNG)\u003c/br\u003e\u003c/br\u003e\n\n#### 當申請完 Discord 的機器人後填入下方的連結並於瀏覽器開啟，就能將自己的機器人加入伺服器中。 \n```\nhttps://discordapp.com/oauth2/authorize?client_id=你申請到的id\u0026scope=bot\n```\n\n#### 測試\n下載並移至專案目錄下\n```\ngit clone https://github.com/kwei/Discord_Lyrics_Robot.git\ncd Discord_Lyrics_Robot\n```\n安裝所需套件 (request：請求 HTML \u0026 jssoup：爬蟲用)\n```\nnpm install request jssoup\n```\n手動新增 botconfig.json 檔案，如下：\n```JSON\n{\n  \"token\": \"你申請到的token\",\n  \"prefix\": \"$\"\n}\n```\n執行\n```\nnpm start\n```\n\n____\n\n## 未來目標\n  * 增加功能，使得多樣化\n  * 將伺服器架於 GCP\n\n## 版本 :clock9:\n\n### version 0.0.1 \n\n|version|infomation|\n| :---: |  :----:  |\n|      0.0.1      | 最基本的查詢歌詞與一些防呆措施，但仍有可能出現問題，還請多多包涵與回應，謝謝。|\n\n\u003cb\u003e\u003ca href=\"#\"\u003e回到頂部\u003c/a\u003e\u003c/b\u003e\n\nLicense\n-------\n\nPaddington is licensed under the [MIT](#) license.  \nCopyright \u0026copy; 2018, KW \u003c/br\u003e\n© 2013-2018 AppleAlmond\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwei%2Fdiscord_lyrics_robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwei%2Fdiscord_lyrics_robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwei%2Fdiscord_lyrics_robot/lists"}