{"id":23452274,"url":"https://github.com/kulmajaba/word-bot","last_synced_at":"2025-04-10T16:55:35.554Z","repository":{"id":179158111,"uuid":"409576715","full_name":"kulmajaba/word-bot","owner":"kulmajaba","description":"Telegram bot for word-related queries","archived":false,"fork":false,"pushed_at":"2021-09-23T12:12:15.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T20:41:26.353Z","etag":null,"topics":["telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kulmajaba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-23T12:11:53.000Z","updated_at":"2021-12-09T11:52:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa5da531-ed59-490c-967e-44cb4872692c","html_url":"https://github.com/kulmajaba/word-bot","commit_stats":null,"previous_names":["kulmajaba/word-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulmajaba%2Fword-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulmajaba%2Fword-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulmajaba%2Fword-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulmajaba%2Fword-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulmajaba","download_url":"https://codeload.github.com/kulmajaba/word-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248257869,"owners_count":21073817,"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":["telegram","telegram-bot"],"created_at":"2024-12-24T01:14:20.481Z","updated_at":"2025-04-10T16:55:35.547Z","avatar_url":"https://github.com/kulmajaba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordbot\n\nTelegram-bot for words around a specific topic.\n\n## Setup\n\nTo parse dictionary words, download kotus-sanalista_v1 and run `WORD=asd python db/parse-kotus.py` from the project root. This will create the file `init_words.sql` which is required to initialize the DB.\n\nThe backend is built using Docker and docker-compose, but should be possible to run without Docker as well. The implementation is done with Python 3.8.5 using PostgreSQL 12\n\nCopy or rename the `.env.sample` file to the same folder as `.env` and fill in the missing information.\n\n| Variable          | Description |\n| ----------------- | ----------- |\n| TG_TOKEN          | Telegram API token for the bot. |\n| LOCALE            | Language, e.q. `fi`. Ensure the locale translations exist in `strings.py`. |\n| WORD              | The substring to search for. |\n| PGTZ              | Postgres default timezone. |\n| POSTGRES_DB       | Postgres database name. Used by both PostgreSQL and Python code. |\n| POSTGRES_USER     | Postgres user for DB access. Same as above. |\n| POSTGRES_PASSWORD | Postgres user password. Same as above. |\n| POSTGRES_HOST     | Hostname for the Python code to use when connecting to the DB, use `db` for Docker installations with the default docker-compose file |\n| POSTGRES_PORT     | Postgres port, used by both PostgreSQL and Python code. |\n| POSTGRES_TABLE_WORD | Table name for the words, use `word` for installations with the default database initialization |\n| POSTGRES_TABLE_WORD_QUERY | Table name for word query counts, use `word_query` for installations with the default database initialization |\n\nAfter that, you should be able to build and run the bot with `docker-compose up -d`. Add `--build` to rebuild images and/or `--force-recreate` to recreate the application containers.\n\nCheck logs with `docker-compose logs`, `-f` to follow, shut down with `docker-compose down`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulmajaba%2Fword-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulmajaba%2Fword-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulmajaba%2Fword-bot/lists"}