{"id":28246716,"url":"https://github.com/hugonun/discord2sheet-bot","last_synced_at":"2025-09-11T07:33:29.677Z","repository":{"id":46628785,"uuid":"180827495","full_name":"hugonun/discord2sheet-bot","owner":"hugonun","description":"Discord bot that stores messages to Google Sheet.","archived":false,"fork":false,"pushed_at":"2022-04-22T16:21:08.000Z","size":22,"stargazers_count":52,"open_issues_count":1,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-15T02:38:23.831Z","etag":null,"topics":["discord","discordpy","google-sheets","google-sheets-api-v4","hacktoberfest","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugonun.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":"2019-04-11T16:00:26.000Z","updated_at":"2025-03-11T00:17:31.000Z","dependencies_parsed_at":"2022-09-23T02:30:34.583Z","dependency_job_id":null,"html_url":"https://github.com/hugonun/discord2sheet-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hugonun/discord2sheet-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugonun%2Fdiscord2sheet-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugonun%2Fdiscord2sheet-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugonun%2Fdiscord2sheet-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugonun%2Fdiscord2sheet-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugonun","download_url":"https://codeload.github.com/hugonun/discord2sheet-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugonun%2Fdiscord2sheet-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274595350,"owners_count":25314017,"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-09-11T02:00:13.660Z","response_time":74,"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","discordpy","google-sheets","google-sheets-api-v4","hacktoberfest","python"],"created_at":"2025-05-19T10:07:48.425Z","updated_at":"2025-09-11T07:33:29.667Z","avatar_url":"https://github.com/hugonun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord2sheet-bot\n\nThis bot allows users to submit messages directly to your Google Sheet.\n\nExample:\n\n`!s Hello world, How are you today?`\n\nOutput:\n\nUsername - UserID - Date - Field 1 - Field 2\n\n![Google Sheet](https://i.imgur.com/MFx25Ik.png)\n\n## How to set it up\n\n**Step 1:** Enable the API and download credentials.json for desktop app (not web). This can be done here: https://developers.google.com/workspace/guides/create-credentials\n\nMake sure credentials.json is stored in the same directory as the bot.\n\n**Step 2:** Open init.py and change the following values(\u003c\u003e):\n\nSPREADSHEET_ID = \u003c\u003e - The ID of the spreashsheet to store the data. It can be found on the URL once opened.\n\nFIELDS = \u003c\u003e - Amount of fields/cells that get stored. They are on the user's message seperated by comma (!s field1, field2,field 3)\n\nclient.run('\u003c\u003e') - The token of the Discord bot.\n\n**Step 3:** Install Python dependencies\n\nIf you haven't installed Python yet, download it [here](https://www.python.org/).\n\nInstall discordpy: `pip install discord.py`\n\nRun the pip command listed here: https://developers.google.com/sheets/api/quickstart/python#step_2_install_the_google_client_library\n\n**Step 4:** Run the bot\n\n`python init.py`\n\n------\n\n## Additional configutations\n\nREQUIREDROLE = \u003c\u003e - If you want to restrict the command to a specific role, insert here the role id. If not, insert `None`.\n\nRANGE_NAME = \u003c\u003e - Where the data should go in the spreadsheet. Default value is `A1`.\n\nDATA = \u003c\u003e - What data goes to the rows, seperated by `[]`. Example: `DATA = [result[0]] + [''] + [result[1]]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugonun%2Fdiscord2sheet-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugonun%2Fdiscord2sheet-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugonun%2Fdiscord2sheet-bot/lists"}