{"id":21058561,"url":"https://github.com/schemar/terraforming-mars-turn-bot","last_synced_at":"2026-04-27T15:32:05.107Z","repository":{"id":148582099,"uuid":"372599056","full_name":"schemar/terraforming-mars-turn-bot","owner":"schemar","description":"A bot that informs you on telegram when it is your turn in Terraforming Mars.","archived":false,"fork":false,"pushed_at":"2021-06-08T07:35:02.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T14:38:31.645Z","etag":null,"topics":["telegram-bot","terraforming-mars"],"latest_commit_sha":null,"homepage":"","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/schemar.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":"2021-05-31T18:39:58.000Z","updated_at":"2021-06-08T07:35:05.000Z","dependencies_parsed_at":"2023-05-25T06:45:41.938Z","dependency_job_id":null,"html_url":"https://github.com/schemar/terraforming-mars-turn-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schemar/terraforming-mars-turn-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fterraforming-mars-turn-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fterraforming-mars-turn-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fterraforming-mars-turn-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fterraforming-mars-turn-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schemar","download_url":"https://codeload.github.com/schemar/terraforming-mars-turn-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fterraforming-mars-turn-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32343229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["telegram-bot","terraforming-mars"],"created_at":"2024-11-19T17:08:24.264Z","updated_at":"2026-04-27T15:32:05.101Z","avatar_url":"https://github.com/schemar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraforming Mars Turn Bot for Telegram\n\nThis bot informs a user when it is their turn in a game of https://github.com/bafolts/terraforming-mars.\n\nIt doesn't work perfectly for drafting.\n\n## Installation\n\n1. Create a bot with the [BotFather](https://core.telegram.org/bots#6-botfather)\n2. Note the token that you will receive\n3. Note the list of allowed Terraforming Mars game servers, that this bot should interact with.\n4. Clone this repo and execute the following steps\n\n```shell\nexport TMTB_TOKEN=\"\u003ctoken from the BotFather\u003e\"\nexport TMTB_SERVERS=\"\u003cone or more allowed servers\u003e\"\nyarn\nyarn build\nyarn start\n```\n\nInstead of `yarn start` you can use the simple `endless.sh` wrapper:\n```shell\n./endless.sh\n```\n\nThe bot uses the following rate limit when querying the server for updates:\n* Wait until all games were checked before starting another round of checks\n* If checking all games took less than 10 seconds, wait until 10 seconds have passed since starting the previous check\n* When sending requests to the game server(s):\n    * Max two running requests in parallel\n    * Wait 10 milliseconds after each request\n\n### List of servers\nThe bot will only track games for a set list of game servers that you define.\nFor example, if your game server runs at https://tm.example.com and a game link\nwas https://tm.example.com/player?id=... then you would run:\n\n```shell\nexport TMTB_SERVERS=\"https://tm.example.com\"\n```\n\nWithout a trailing slash and without a game link.\n\nIf you have more servers and you want to allow them with your bot, separate them by comma:\n\n```shell\nexport TMTB_SERVERS=\"https://tm.example.com,https://terraformer.test.uk\"\n```\n\n## Usage\n\nSearch for the bot you created on Telegram. Send `/help` to get instructions.\n\nThe bot will notify you when it is your turn in a game of the open source version of Terraforming Mars.\n\nUnfortunately, the bot is currently not able to inform you about updates during a research phase.\n\nA link to a game for the `/start` and `/stop` commands looks like this: `https://tm.example.com/player?id=abc123`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschemar%2Fterraforming-mars-turn-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschemar%2Fterraforming-mars-turn-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschemar%2Fterraforming-mars-turn-bot/lists"}