{"id":21682619,"url":"https://github.com/chairco/fb-bot","last_synced_at":"2026-04-30T12:34:21.906Z","repository":{"id":82500816,"uuid":"92950826","full_name":"chairco/fb-bot","owner":"chairco","description":"這是 PyConTW2017 fb 猜謎機器人的雛形版本，正式版請參考","archived":false,"fork":false,"pushed_at":"2017-06-03T07:37:26.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T20:53:37.465Z","etag":null,"topics":["django","facebook","ngrok","postgresql"],"latest_commit_sha":null,"homepage":"https://github.com/pycontw/quizbot-2017","language":"Python","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/chairco.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}},"created_at":"2017-05-31T13:51:51.000Z","updated_at":"2017-06-20T18:08:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a82db1a-bb40-47ec-8b21-4444053ab1e5","html_url":"https://github.com/chairco/fb-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chairco/fb-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chairco%2Ffb-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chairco%2Ffb-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chairco%2Ffb-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chairco%2Ffb-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chairco","download_url":"https://codeload.github.com/chairco/fb-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chairco%2Ffb-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["django","facebook","ngrok","postgresql"],"created_at":"2024-11-25T15:38:53.487Z","updated_at":"2026-04-30T12:34:21.888Z","avatar_url":"https://github.com/chairco.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fb-bot\n\n## Token 設定\n將 [fb_setting.py](https://github.com/chairco/fb-bot/blob/master/mybot/fb_setting.py) 裡面的內容改成你的，如下：\n\n**ACCESS_TOKEN** token  (權杖)\n\n**VERIFY_TOKEN** 自己設定，可以隨便打\n\n```python\nACCESS_TOKEN = \"xxxxxxxxxxxxxxxxxxxxxxxxx\"\n\nVERIFY_TOKEN = \"1234567890\"\n```\n\n\n## 使用 ngrok 建立  https 環境\n雖然我是自己用 nginx + Let's Encrypt 建立一個 https 環境，但如果要偷懶也是有的。直接下載 [ngrok](https://ngrok.com/) ，免安裝版本，解壓縮即可使用，這個服務會自動 bind localhost 某個 port 然侯指向一個網址，讓外網的使用者可以連進來。\n\n解壓縮之後再終端機鍵入指令\n\n```cmd\n.ngrok http 8000\n```\n\n![alt tag](http://i.imgur.com/p9lczTx.jpg)\n\n如果路徑正確，會看到下圖紅色框就是網址，記得選 https\n\n![alt tag](http://i.imgur.com/W1qdiFE.jpg)\n\n接著找到 Webhooks ，然後按編輯 (如果你找不到，第一次在 Messenger 裡面)\n\n![alt tag](http://i.imgur.com/SGYsfvT.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchairco%2Ffb-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchairco%2Ffb-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchairco%2Ffb-bot/lists"}