{"id":18648681,"url":"https://github.com/eaimty/eaimty_bot","last_synced_at":"2025-04-11T14:31:16.613Z","repository":{"id":47186536,"uuid":"251077302","full_name":"EAimTY/eaimty_bot","owner":"EAimTY","description":"个人用 Telegram Bot","archived":true,"fork":false,"pushed_at":"2022-02-16T11:47:30.000Z","size":414,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T09:42:55.968Z","etag":null,"topics":["bot","rust","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EAimTY.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}},"created_at":"2020-03-29T16:23:00.000Z","updated_at":"2025-02-07T02:05:51.000Z","dependencies_parsed_at":"2022-09-09T01:01:25.276Z","dependency_job_id":null,"html_url":"https://github.com/EAimTY/eaimty_bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Feaimty_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Feaimty_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Feaimty_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Feaimty_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EAimTY","download_url":"https://codeload.github.com/EAimTY/eaimty_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248419679,"owners_count":21100223,"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":["bot","rust","telegram","telegram-bot"],"created_at":"2024-11-07T06:33:22.538Z","updated_at":"2025-04-11T14:31:12.340Z","avatar_url":"https://github.com/EAimTY.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eaimty_bot\n\n个人用 Telegram Bot\n\n## 功能\n\n- [x] /about - 关于\n- [x] /connectfour - 玩四子棋\n- [x] /dart - 掷一枚飞标\n- [x] /dice - 掷一枚骰子\n- [x] /minesweeper [棋盘高] [棋盘宽] [地雷数] - 玩扫雷\n- [x] /ocr - 识别图片中文字\n- [x] /reversi - 玩黑白棋\n- [x] /slot - 转一次老虎机\n- [x] /tictactoe - 玩 Tic-Tac-Toe\n- [x] /help - 帮助信息\n\n...\n\n游戏抽象均来自 [EAimTY/gamie](https://github.com/EAimTY/gamie)\n\n## 依赖\n\nLeptonica、Tesseract、Tesseract 语言包（eng、jpn、chi_sim、chi_tra）\n\n## 使用\n\n    USAGE:\n        eaimty_bot [OPTIONS] --token \u003cTOKEN\u003e\n\n    FLAGS:\n        -h, --help       打印帮助信息\n        -V, --version    打印版本信息\n\n    OPTIONS:\n        -p, --proxy \u003cPROXY\u003e    设置代理（支持：http、https、socks5）\n        -t, --token \u003cTOKEN\u003e    设置 Telegram Bot HTTP API Token\n        -w, --webhook \u003cPORT\u003e   以 webhook 模式运行，后接监听端口号\n\n本 bot 支持 longpoll 与 webhook 两种运行方式，默认使用 longpoll\n\n以 webhook 模式运行时，由于 Telegram 限制，webhook 地址必须为 HTTPS 协议，所以需要使用任意 web server 作为中继，以 Nginx 为例：\n\n    server {\n        listen 443 ssl http2;\n        listen [::]:443 ssl http2;\n\n        # webhook callback URL 域名\n        server_name DOMAIN;\n\n        # SSL 证书设置\n        ssl_certificate      /PATH/TO/cert.pem;\n        ssl_certificate_key  /PATH/TO/key.pem;\n        ssl_protocols        TLSv1.1 TLSv1.2 TLSv1.3;\n\n        # webhook callback URL 路径\n        location /PATH {\n            proxy_redirect off;\n\n            # bot 监听地址与端口\n            proxy_pass http://127.0.0.1:PORT;\n            proxy_http_version 1.1;\n            proxy_set_header Upgrade $http_upgrade;\n            proxy_set_header Connection \"upgrade\";\n            proxy_set_header Host $http_host;\n        }\n    }\n\n## 编译\n\n    git clone https://github.com/EAimTY/eaimty_bot.git\n    cd eaimty_bot\n\n编译\n\n    cargo build --release\n\n## 开源许可\n\nThe GNU General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Feaimty_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feaimty%2Feaimty_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Feaimty_bot/lists"}