{"id":49885852,"url":"https://github.com/meyer1994/telecode","last_synced_at":"2026-05-15T18:15:15.269Z","repository":{"id":332673690,"uuid":"1134577745","full_name":"meyer1994/telecode","owner":"meyer1994","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-14T23:23:11.000Z","size":393,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-15T05:42:07.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/meyer1994.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-14T22:56:12.000Z","updated_at":"2026-01-14T23:23:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/meyer1994/telecode","commit_stats":null,"previous_names":["meyer1994/telecode"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/meyer1994/telecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Ftelecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Ftelecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Ftelecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Ftelecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meyer1994","download_url":"https://codeload.github.com/meyer1994/telecode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Ftelecode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-05-15T18:15:14.423Z","updated_at":"2026-05-15T18:15:15.261Z","avatar_url":"https://github.com/meyer1994.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infinite Buttons Telegram Bot\n\nA discovery game Telegram bot built with Nitro and Cloudflare Workers. Users\nexplore a tree of \"buttons\" (items) where new branches are generated on-the-fly\nusing Cloudflare AI.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./screenshot.jpeg\" alt=\"Infinite Buttons Telegram Bot Screenshot\" width=\"350\"/\u003e\n\u003c/p\u003e\n\n## Game Mechanics\n\n**Infinite Buttons** is an exploration game where players navigate through an\ninfinite tree of items. The game starts with four root elements representing the\nclassical elements: Water 💧, Fire 🔥, Air 💨, and Earth 🌍.\n\n### How to Play\n\n1. **Start**: Use `/start` to begin your journey. You'll see the four root\n   elements as clickable buttons.\n\n2. **Explore**: Click on any button to navigate deeper into that branch of the\n   tree. Each button represents an item with a name and emoji.\n\n3. **Discover**: When you click on a button that doesn't have children yet, the\n   AI generates up to 4 new related items on-the-fly. These items are\n   semantically similar to the parent item and are added to the database for\n   future players to discover.\n\n4. **Navigate**: The game uses alternating menus that allow you to move between\n   different branches. You can always close the menu and start fresh with\n   `/start`.\n\n### Game Features\n\n- **Infinite Exploration**: The tree grows as players explore, with AI-generated\n  content creating new branches dynamically.\n- **Shared Discovery**: Items discovered by one player become available to all\n  players, creating a collaborative exploration experience.\n- **Session Tracking**: The bot tracks your current position, navigation history,\n  and discovered items throughout your session.\n\n## Tech Stack\n\n- **Framework**: [Nitro](https://nitro.build/) (Cloudflare Module preset)\n- **Bot Framework**: [grammY](https://grammy.dev/)\n- **Database**: [Cloudflare D1](https://developers.cloudflare.com/d1/) with\n  [Drizzle ORM](https://orm.drizzle.team/)\n- **AI**: [Cloudflare AI](https://developers.cloudflare.com/ai/) (using Llama\n  3.3)\n- **Deployment**: [Cloudflare Workers](https://workers.cloudflare.com/)\n\n## Configuration\n\nThe bot requires the following environment variables. In production, these\nshould be set as Cloudflare secrets.\n\n- `NITRO_BOT_TOKEN`: Your Telegram Bot API token from\n  [@BotFather](https://t.me/BotFather).\n- `NITRO_BOT_INFO`: A JSON string representing the bot's info (output of\n  `bot.api.getMe()`).\n- `NITRO_CLOUDFLARE_API_TOKEN`: Your Cloudflare API token for Nitro operations.\n- `NITRO_CLOUDFLARE_ACCOUNT_ID`: Your Cloudflare account ID.\n\n## Commands\n\n### Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Start Nitro in development mode\npnpm dev\n\n# Local preview with Wrangler (Cloudflare environment)\npnpm preview\n```\n\n### Database\n\n```bash\n# Generate Drizzle migrations\npnpm cf:db:generate\n\n# Apply migrations to the Cloudflare D1 database (remote)\npnpm cf:db:migrate\n```\n\n### Deployment\n\n```bash\n# Typecheck, build, and deploy to Cloudflare\npnpm cf:deploy\n```\n\n### Linting\n\n```bash\n# Run ESLint\npnpm lint\n\n# Fix linting issues\npnpm lint:fix\n```\n\n## Project Structure\n\n- `server/routes/tlg.ts`: Webhook handler for Telegram updates.\n- `server/utils/telegram.ts`: Core bot logic, menus, and interaction handlers.\n- `server/utils/ai.ts`: Item generation logic using Cloudflare AI.\n- `server/db/schema.ts`: Drizzle database schema definitions.\n- `wrangler.jsonc`: Cloudflare Workers configuration (D1 and AI bindings).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Ftelecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeyer1994%2Ftelecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Ftelecode/lists"}