{"id":23108664,"url":"https://github.com/gebv/pub7","last_synced_at":"2025-08-25T08:23:08.224Z","repository":{"id":151923306,"uuid":"100347850","full_name":"gebv/pub7","owner":"gebv","description":"engine for messager bots","archived":false,"fork":false,"pushed_at":"2017-08-18T06:31:05.000Z","size":35,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T23:14:25.580Z","etag":null,"topics":["bot","collector","telegram"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gebv.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":"2017-08-15T06:47:49.000Z","updated_at":"2017-08-17T13:46:59.000Z","dependencies_parsed_at":"2023-05-22T02:30:50.951Z","dependency_job_id":null,"html_url":"https://github.com/gebv/pub7","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gebv/pub7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gebv%2Fpub7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gebv%2Fpub7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gebv%2Fpub7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gebv%2Fpub7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gebv","download_url":"https://codeload.github.com/gebv/pub7/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gebv%2Fpub7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272031557,"owners_count":24861688,"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-08-25T02:00:12.092Z","response_time":1107,"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":["bot","collector","telegram"],"created_at":"2024-12-17T01:28:59.065Z","updated_at":"2025-08-25T08:23:08.184Z","avatar_url":"https://github.com/gebv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pub7\n\n# Features\n\n* to collect user data\n* communicate according to the script\n\n# Status\n\nNot Ready for production\n\n# Examples\n\n## example 1\n\nDiagram\n\n![example1](https://s3.amazonaws.com/idheap/ss/pub7_example.png)\n\nScript\n\n``` toml\n[[nodes]]\nid = \"start\"\ntext = \"Hi, i am robot.\"\nnext = \"q_what_name\"\nbefore = '''\nif #ctx:get(\"name\") \u003e 0 then\n    ctx:redirect(\"q1\")\nend\n'''\ntransit = true\n\n\n[[nodes]]\nid = \"setname\"\nnext = \"q_what_name\"\ntransit = true\n\n[[nodes]]\nid = \"q_what_name\"\ntext = \"What's your name?\"\nnext = \"h_what_name\"\n\n[[nodes]]\nid = \"h_what_name\"\nhandler = '''\nif ctx:text() == \"\" then\n    print(\"empty name\")\n    ctx:redirect(\"q_what_name\")\nend\n'''\nnext = \"q1\"\nparam = \"name\"\ntransit = true\n\n\n[[nodes]]\nid = \"q1\"\ntext = \"{{.name}} how much 19+15 is?\"\nnext = \"h_q1\"\n\n[[nodes]]\nid = \"h_q1\"\nhandler = '''\nprint(\"h_q1\", ctx:text())\nif ctx:text() == \"34\" then\n    ctx:redirect(\"finish\")\nelse \n    ctx:send(\"No, try again\")\n    ctx:redirect(\"q1\")\nend\n'''\ntransit = true\n\n[[nodes]]\nid = \"finish\"\ntext = \"Right! Again? /start\"\n```\n\n# Quick start\n\n``` shell\nsource .env # tarantool config\n\nbroombot -file scripts/example.toml run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgebv%2Fpub7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgebv%2Fpub7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgebv%2Fpub7/lists"}