{"id":20103540,"url":"https://github.com/nonefffds/palm-discord-bot","last_synced_at":"2025-10-07T01:52:44.608Z","repository":{"id":171722981,"uuid":"647827531","full_name":"nonefffds/PaLM-Discord-Bot","owner":"nonefffds","description":"This is a repository that allows you to integrate Google PaLM API into a Discord Bot.","archived":false,"fork":false,"pushed_at":"2023-12-18T18:33:32.000Z","size":258,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T08:48:00.783Z","etag":null,"topics":["discord-py","google-palm"],"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/nonefffds.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-31T15:48:08.000Z","updated_at":"2024-04-25T18:10:12.000Z","dependencies_parsed_at":"2023-12-18T21:57:23.458Z","dependency_job_id":"9f600d44-54f4-47c9-a4d7-c0073fc8df19","html_url":"https://github.com/nonefffds/PaLM-Discord-Bot","commit_stats":null,"previous_names":["nonefffds/bard-discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nonefffds/PaLM-Discord-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonefffds%2FPaLM-Discord-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonefffds%2FPaLM-Discord-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonefffds%2FPaLM-Discord-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonefffds%2FPaLM-Discord-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nonefffds","download_url":"https://codeload.github.com/nonefffds/PaLM-Discord-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonefffds%2FPaLM-Discord-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708030,"owners_count":26031932,"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-10-06T02:00:05.630Z","response_time":65,"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":["discord-py","google-palm"],"created_at":"2024-11-13T17:36:48.405Z","updated_at":"2025-10-07T01:52:44.587Z","avatar_url":"https://github.com/nonefffds.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PaLM-Discord-Bot\n\nGoogle PaLM API in Discord.\n\n![](https://img.shields.io/badge/License-MIT-lightgrey)\n\n~~Google PaLM API only works in the United States.~~\n\n## Notice\n\nDiscord only can handle 2000 characters per message, so I manually set the PaLM can only outputting no more than 145 tokens. If your channel can handle 4000 or even more, make the `output_token_limit= 145` in `main.py` value doubled or more.\n\nAlso, I dropped the temperature option, you can always add it back.\n\n## To-do\n\n- **Adapt the latest Google Vertex AI platform for Gemini(pro)**\n- Use .env instead\n- Integrate this with any other AIGC APIs and make this more versatile?\n\n\n## Example:\n![](https://github.com/nonefffds/PaLM-Discord-Bot/blob/main/image/test.png)\n![](https://github.com/nonefffds/PaLM-Discord-Bot/blob/main/image/test2.png)\n\n## Command\n\n`/palm` to chat with PaLM.\n\n## Installation\n\n### Get your Discord API\n\n1. Go [Discord Dev](https://discord.com/developers/applications)\n2. Go `Application` on the left part\n3. Go `New Application`, create a new Bot\n4. Go `Bot` on the left\n5. Click `Add bot`\n6. Turn on `MESSAGE CONTENT INTENT`\n7. `Save Change`\n8. View and save your API Key on the top of page `View Token`, or reset one if you don't remember\n9. Click OAuth2 on the left part\n10. Click on `URL Generator`\n11. Choose `bot` in `SCOPES`, `Administrator` in `BOT PERMISSIONS`\n12. Copy the link at bottom into your browser, add bot and authorize to you server.\n### Get your PaLM API\n1. Join the waitlist [here](https://developers.generativeai.google/), after you passed the waitlist, you'll receive an email like this:\n![](https://github.com/nonefffds/PaLM-Discord-Bot/blob/main/image/welcome.png)\n1. Go [MakerSuite](https://makersuite.google.com/), and create an API key for this application.\n### Deploy on your machine\n1. Star this project I guess\n2. git clone this repository\n3. `pip install discord google-generativeai`\n4. `cd PaLM-Discord-Bot`\n5. `nano main.py`\n6. replace with your Discord API Key and PaLM API Key at following lines:\n`palm.configure(api_key = \"PaLM_API_KEY\")`\n`client.run(\"DISCORD_TOKEN\")`\n7. `python3 main.py`\n\nIf you want to run it background, you can try Screen.\n\n## Reference: \n\nHuge thanks to following projects.\n\nhttps://github.com/TheExplainthis/ChatGPT-Discord-Bot\n\nhttps://discordpy.readthedocs.io/en/stable/#getting-started\n\nhttps://developers.generativeai.google/api/python/google/generativeai\n\n## License:\nThis work is under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonefffds%2Fpalm-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnonefffds%2Fpalm-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonefffds%2Fpalm-discord-bot/lists"}