{"id":20425831,"url":"https://github.com/sbence/random-nonsense-generator","last_synced_at":"2026-05-29T06:31:24.351Z","repository":{"id":256753735,"uuid":"855899840","full_name":"SBence/random-nonsense-generator","owner":"SBence","description":"A Telegram bot to generate messages using Markov chains","archived":false,"fork":false,"pushed_at":"2026-05-25T22:08:10.000Z","size":783,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-26T00:19:29.038Z","etag":null,"topics":["grammy","grammyjs","prisma","prisma-orm","telegram","telegram-bot","telegram-bot-api"],"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/SBence.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":"2024-09-11T16:31:05.000Z","updated_at":"2026-05-25T22:08:07.000Z","dependencies_parsed_at":"2025-05-26T18:22:04.577Z","dependency_job_id":"de420143-ce95-43c6-8563-a0072e134d14","html_url":"https://github.com/SBence/random-nonsense-generator","commit_stats":null,"previous_names":["sbence/random-nonsense-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SBence/random-nonsense-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBence%2Frandom-nonsense-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBence%2Frandom-nonsense-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBence%2Frandom-nonsense-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBence%2Frandom-nonsense-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SBence","download_url":"https://codeload.github.com/SBence/random-nonsense-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBence%2Frandom-nonsense-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33640627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["grammy","grammyjs","prisma","prisma-orm","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-11-15T07:14:24.106Z","updated_at":"2026-05-29T06:31:24.342Z","avatar_url":"https://github.com/SBence.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Nonsense Generator\n\nA Telegram bot to generate messages using Markov chains\n\n## Preparation\n\n### Creating a bot on Telegram\n\nCreating a bot is done through [@BotFather](https://t.me/BotFather). See the [official documentation](https://core.telegram.org/bots/features#creating-a-new-bot) for more details.\n\n\u003e [!IMPORTANT]  \n\u003e [Privacy mode](https://core.telegram.org/bots/features#privacy-mode) has to be disabled so that the bot can store user messages to generate its replies from.\n\n#### Setting bot commands\n\n1. Send `/setcommands` to [@BotFather](https://t.me/BotFather).\n2. Select this bot.\n3. Enter the commands that are registered in the bot (using `bot.command()`):\n\n   \u003e settings - Adjust bot settings  \n   \u003e stats - View stats about the bot's activity in your group\n\n\u003e [!IMPORTANT]  \n\u003e Make sure to perform the steps above, otherwise users won't be able to configure the bot's settings.\n\n### Project installation\n\n1. Install dependencies:\n\n   ```sh\n   yarn install\n   ```\n\n2. Add the database URL and your bot token from BotFather to the `.env` file in the project directory:\n\n   ```properties\n   DATABASE_URL=\"file:database/store.db\"\n   TOKEN=\u003cinsert your Telegram bot token here\u003e\n   ```\n\n## Development\n\n1. Follow the steps in the [Project installation](#project-installation) section.\n2. Start the bot in development mode:\n\n   ```sh\n   yarn run dev\n   ```\n\n### Generating migrations for production\n\n```sh\nyarn run generate-migrations\n```\n\n\u003e [!IMPORTANT]\n\u003e Make sure to run the command above before every deployment.\n\n## Deployment\n\n_Follow the steps below in the deployment environment._\n\n1. Follow the steps in the [Project installation](#project-installation) section.\n2. Build the bot:\n\n   ```sh\n   yarn run build\n   ```\n\n3. Run `build/index.js` using your preferred method. (For example, to run with Node.js: `node --enable-source-maps build/index.js`)\n\n## Usage\n\n### Adding the bot to your group\n\nThe process of adding the bot user is the same as adding any other user.\n\n### Generating messages\n\nBy default, the bot replies with a generated message when it is **@mention**ed.\n\nFor more information on how to adjust reply settings see [Bot configuration](#bot-configuration).\n\n### Bot configuration\n\nSend `/settings` in the group chat to access the bot's settings menu and configure its settings for that group.\n\n#### Options\n\n- **Reply on mention:** Reply when the bot is mentioned.\n- **Reply randomly:** Send a message when the number of messages sent in the group reaches a certain amount since the bot's last message.\n- **Admin-only settings:** Allow setting changes only by group admins.\n- **Admin-only bot commands:** Allow the bot's commands to be used only by group admins.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbence%2Frandom-nonsense-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbence%2Frandom-nonsense-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbence%2Frandom-nonsense-generator/lists"}