{"id":18418456,"url":"https://github.com/tim232/rapgod","last_synced_at":"2025-07-25T06:03:08.234Z","repository":{"id":136833163,"uuid":"292443829","full_name":"Tim232/RapGod","owner":"Tim232","description":"🔊 Creating raps and playing them through Discord, Used wrussell1999's source.","archived":false,"fork":false,"pushed_at":"2020-12-23T09:29:47.000Z","size":35911,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T08:56:05.793Z","etag":null,"topics":[],"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/Tim232.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}},"created_at":"2020-09-03T02:20:10.000Z","updated_at":"2021-01-06T23:23:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2ce803b-eede-4650-b886-19a36222f093","html_url":"https://github.com/Tim232/RapGod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tim232/RapGod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim232%2FRapGod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim232%2FRapGod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim232%2FRapGod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim232%2FRapGod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tim232","download_url":"https://codeload.github.com/Tim232/RapGod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim232%2FRapGod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266963279,"owners_count":24013020,"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-07-25T02:00:09.625Z","response_time":70,"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":[],"created_at":"2024-11-06T04:13:42.162Z","updated_at":"2025-07-25T06:03:08.214Z","avatar_url":"https://github.com/Tim232.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rap God\n\n## Usage\n\nInvite the bot to your server or just DM it.\nUse `!help` to get help in Discord.\n\n##### In servers\n\n- `!rap \u003cword(s)\u003e ` make a rap with the given words and play it in a voice channel\n- `!lyrics \u003cwords(s)\u003e` make a rap with the given words and just print it\n- `!save` save the last rap played and upload it as an mp3\n\nServer admin-only commands:\n- `!voice_channel \u003cname of voice channel\u003e` set which voice channel raps should be played in\n- `!lyrics_channel \u003cname of text channel\u003e` set which text channel the `!lyrics` command is allowed to be used allowed in (to reduce spam)\n\n##### In a DM chat with the bot\n- `!rap \u003cword(s)\u003e ` make a rap with the given words and upload it as an mp3\n- `!lyrics \u003cwords(s)\u003e` make a rap with the given words and just print it\n\n## Setup Environment\n\nRequires Python 3.6.7 or above.\n```bash\n$ python3 -m venv .venv\n$ source .venv/bin/activate\n$ pip3 install -r requirements.txt\n```\n\nRequires command line application `ffmpeg` or `avconv` to load the backing tracks.\n\nThen following python needs to be run to get the natural language data sets:\n```python\nimport nltk\nnltk.download('punkt')\nnltk.download('averaged_perceptron_tagger')\n```\n\n## Configuration\n\n##### Google Cloud Platform credentials\n\nFollow [this guide](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries#client-libraries-install-python) to get GCP text-to-speech working. Put the JSON file in the config folder and name it ```google_cloud_key.json```.\n\n##### Discord credentials\n\nFollow [this guide](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token) to get a Discord bot setup on your server.\n\n`config/discord.json`\n\n```json\n{\n    \"token\": \"\u003cbot token goes here\u003e\",\n    \"thread_count\":4,\n    \"command_prefix\":\"!\"\n}\n```\n\n`config/songs.json`\n\n```json\n{\n  \"artist name\":\"song name or * for all songs\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim232%2Frapgod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim232%2Frapgod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim232%2Frapgod/lists"}