{"id":26678199,"url":"https://github.com/telexintegrations/telex-wordle","last_synced_at":"2025-03-26T05:15:11.234Z","repository":{"id":279201719,"uuid":"937511300","full_name":"telexintegrations/telex-wordle","owner":"telexintegrations","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-24T10:00:05.000Z","size":8655,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T11:21:32.864Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telexintegrations.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":"2025-02-23T08:29:12.000Z","updated_at":"2025-02-24T10:00:11.000Z","dependencies_parsed_at":"2025-02-24T11:21:41.973Z","dependency_job_id":"485632c7-cedd-40ec-8242-d4704675d010","html_url":"https://github.com/telexintegrations/telex-wordle","commit_stats":null,"previous_names":["telexintegrations/telex-wordle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-wordle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-wordle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-wordle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-wordle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/telex-wordle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591533,"owners_count":20640692,"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":"2025-03-26T05:15:09.883Z","updated_at":"2025-03-26T05:15:11.223Z","avatar_url":"https://github.com/telexintegrations.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telex Wordle\n\nThis is a Node.js/Express application that integrates with Telex. Telex Wordle provides the wordle of the day on user's request.\n\n## Prerequisites\n\n- Node.js \n- npm (Node Package Manager)\n\n## Installation\n\n1. Fork the repository.\n2. Clone the repository.\n  ```bash\n  git clone https://github.com/your_username/telex_wordle.git\n  ```\n3. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n\n## Running the Application\n\nTo run the application:\n\n```bash\n  node index.js\n```\n\nThe server will start on the port specified.\n\n## API Endpoints\n\n### POST /webhook\n\nReceives messages from Telex channels. The endpoint expects a JSON payload with the following structure:\n\n```json\n{\n  \"channel_id\": \"string\",\n  \"settings\": [\n   {\n        \"label\": \"Provide Answer\",\n        \"type\": \"text\",\n        \"required\": true,\n        \"default\": \"No\"\n  }\n  ],\n  \"message\": \"string\"\n}\n```\nUser's input is contained in \"message\". If the user sends a random text, they would get a reply saying 'To see the wordle of the day, enter 'wordle' in the chat box'.\nIf they input 'wordle', they would receive a response saying 'The wordle of the day is: word'\n\n#### Process\nA request is made to the Wordle API hitting the API's endpoint /answer and the word is extracted from the response, then sent back to telex\n```json\n  {\n    \"status\": \"success\",\n    \"message\": \"The wordle of the day is: ${word}\"\n  }\n```\nor \n```json\n  {\n    \"status\": \"success\",\n    \"message\": \"To see the wordle of the day, enter 'wordle' in the chat box\"\n  }\n```\nDepending on user input.\n\n\n\n### GET /integration\n\nReturns the integration configuration for Telex. Use this configuration to set up your integration in the Telex dashboard.\n\n## Features\n- **Integration with Wordle API:** Gets wordle of the day from https://wordle-api-kappa.vercel.app\n- **CORS Support:** Allows cross-origin requests to ease integration.\n\n\n## Testing\n\n+ Tested the integration on Telex App\n\n![Screenshot from 2025-02-21 20-35-32](https://github.com/user-attachments/assets/79af92e4-8c61-420c-94e1-387897ec8f20)\n\n![Screenshot from 2025-02-21 20-35-36](https://github.com/user-attachments/assets/fcc7ed9b-2e56-491f-b2bd-c7830e5133ee)\n\n![Screenshot from 2025-02-21 20-35-40](https://github.com/user-attachments/assets/1fa82bf1-a981-4f0b-aacc-31392d7a66dc)\n\n+ Wrote unit tests\n![Screenshot from 2025-02-21 22-20-48](https://github.com/user-attachments/assets/e033a0ea-165a-4940-9438-0155d59acc85)\n\n\n\n\n## Deployment\nThe Integration was deployed on Vercel and Telex\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftelex-wordle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Ftelex-wordle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftelex-wordle/lists"}