{"id":15392644,"url":"https://github.com/jackdbd/stack-exchange-bot","last_synced_at":"2025-10-11T05:31:37.848Z","repository":{"id":37815337,"uuid":"223780304","full_name":"jackdbd/stack-exchange-bot","owner":"jackdbd","description":"A Telegram bot to explore the Stack Exchange API. Built with Claudia.js","archived":true,"fork":false,"pushed_at":"2023-01-05T01:36:08.000Z","size":2025,"stargazers_count":0,"open_issues_count":27,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T16:39:18.574Z","etag":null,"topics":[],"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/jackdbd.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}},"created_at":"2019-11-24T17:11:05.000Z","updated_at":"2024-05-06T09:00:10.000Z","dependencies_parsed_at":"2023-02-03T04:17:05.742Z","dependency_job_id":null,"html_url":"https://github.com/jackdbd/stack-exchange-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackdbd/stack-exchange-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fstack-exchange-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fstack-exchange-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fstack-exchange-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fstack-exchange-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackdbd","download_url":"https://codeload.github.com/jackdbd/stack-exchange-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackdbd%2Fstack-exchange-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006320,"owners_count":26084085,"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-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2024-10-01T15:15:27.564Z","updated_at":"2025-10-11T05:31:37.592Z","avatar_url":"https://github.com/jackdbd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack Exchange Telegram Bot\n\n[![Build Status](https://travis-ci.com/jackdbd/stack-exchange-bot.svg?branch=master)](https://travis-ci.com/jackdbd/stack-exchange-bot) [![codecov](https://codecov.io/gh/jackdbd/stack-exchange-bot/branch/master/graph/badge.svg)](https://codecov.io/gh/jackdbd/stack-exchange-bot) [![Known Vulnerabilities](https://snyk.io//test/github/jackdbd/stack-exchange-bot/badge.svg?targetFile=package.json)](https://snyk.io//test/github/jackdbd/stack-exchange-bot?targetFile=package.json) [![DeepScan grade](https://deepscan.io/api/teams/3517/projects/8175/branches/93087/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=3517\u0026pid=8175\u0026bid=93087) [![GitHub issues](https://img.shields.io/github/issues/jackdbd/stack-exchange-bot.svg)](https://github.com/jackdbd/stack-exchange-bot/issues/) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fjackdbd%2Fstack-exchange-bot.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fjackdbd%2Fstack-exchange-bot?ref=badge_small)\n\nA Telegram bot to explore the [Stack Exchange API](https://api.stackexchange.com/docs). Built with [Claudia.js](https://claudiajs.com/).\n\n## Installation and Configuration\n\n### Create the Telegram bot\n\nCreate a new bot by talking to [BotFather](https://core.telegram.org/bots#3-how-do-i-create-a-bot) and following a few simple steps. You will get an [authorization token](https://core.telegram.org/bots#creating-a-new-bot).\n\n### Setup Node.js version for local development/testing\n\n[Claudia.js v.5.10.0+](https://www.claudiajs.com/news/2019/11/19/claudia-5.10.html) deploys your lambda on AWS Lambda and configures it to be executed on a Node.js `12.x` environment.\n\nWhen testing your lambda locally, be sure to use the same Node.js version. I included a `.nvmrc` file in the repo, so if you use [nvm](https://github.com/nvm-sh/nvm) you just have to type:\n\n```shell\nnvm use\n```\n\nSince this project includes a `.nvmrc` file, the same Node.js version will be used on [Travis CI](https://docs.travis-ci.com/user/languages/javascript-with-nodejs#specifying-nodejs-versions-using-nvmrc).\n\n### Install dependencies\n\nInstall both production and development dependencies:\n\n```shell\nyarn\n```\n\n### First deployment\n\nThe first time you deploy your bot, you will need to create an API on [AWS API Gateway](https://aws.amazon.com/api-gateway/), create a lambda on [AWS Lambda](https://aws.amazon.com/lambda/), create a security role on [AWS Identity and Access Management (IAM)](https://aws.amazon.com/iam/), setup policies for your lambda to use other AWS services such as S3 or DynamoDB.\n\nYou can do all of the above with this command:\n\n```shell\nyarn bot:create\n```\n\n### Configure the bot\n\nNow that the bot is deployed on AWS, you need to configure it with the `authorization token` that BotFather gave you.\n\n```shell\nyarn bot:configure-telegram  # type access token when prompted\n```\n\n## Development\n\nWhenever you want to deploy a new version of the bot, run one of these commands:\n\n```shell\nyarn bot:update:dev  # development\nyarn bot:update:prod \u0026\u0026 yarn api:release  # production\n```\n\n*Note:* You can invoke [npm Task List](https://github.com/ruyadorno/ntl) with: `yarn menu` to avoid typing the commands.\n\n## Typescript type definitions\n\nAt the moment [claudia-api-builder](https://www.claudiajs.com/claudia-api-builder.html) and [claudia-bot-builder](https://claudiajs.com/claudia-bot-builder.html) don't ship their type definitions. I included some type definitions in the `@types` directory. They are ok for the current needs of this project, but they are incomplete. Don't rely on them too much.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdbd%2Fstack-exchange-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackdbd%2Fstack-exchange-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackdbd%2Fstack-exchange-bot/lists"}