Coder Social home page Coder Social logo

pttautosign's Introduction

PTTAutoSign

PTT 自動簽到,最近老人在用的 PTT 終於又重新開放註冊了,我也嘗試當個老人。
kachow 2021-08-21 at 13 36 12@2x

✅ 不需要額外伺服器
🚀 即時發送通知到 Telegam
👷‍♂️ 不需額外維護

  1. 首先右上角 Star 給他按下去,接著 fork 一份。哪天如果被我海巡到會被我單方面的 Block。
  2. 接著打開 Layerci 用一個舒服的方式登入或註冊。
  3. 點一下 New Installation,並點一下 Install on GitHub
    1.png
  4. 點左邊的 Secrets 設定環境參數,不知道 chat_id 嗎?請參考下方 FAQ。
bot_token  -> telegram bot token
chat_id    -> telegram chat id
ptt_id_1   -> ptt 帳號 (username,passwd)

** 如果沒有第二個帳號要登入請一樣新增 ptt_id_2 但在輸入帳號與密碼的地方輸入 none **
ptt_id_2   -> ptt 帳號 (username,passwd)
  1. 在左側 Settings 中找到 OrganizationLive API Key 複製起來
    2.png
  2. 新增至 GitHub Secret 中取名為 LAYERCI 3.png
  3. 最後點自己 RepoAction,找到左側 Daily Trigger 打開 workflow。
    image
  4. 自動同步更新原始碼,請點這裡,並點一下綠色的 Install,如果安裝過請點 Configureimage
  5. Enjoy 🎉

FAQ

Q: 我怎麼找到我的 bot_token
A: 先去找 @Botfather 申請一個,之後會拿到一個 token 像是 1234567:abcdefghijklmnopqrstuwxyz

Q: 我要怎麼知道 chat_id?頻道或群組支援嗎?
A: 拆開講。
如果你要拿自己的 chat_id 直接私訊 @my_id_bot
如果你要拿頻道的 chat_id 開好一個頻道,在頻道裡面隨便打一段字,接著將那串文字轉傳給 @my_id_bot
如果你要拿群組的 chat_id 直接把 @my_id_bot 加進群組

pttautosign's People

Contributors

tasi788 avatar wutofu avatar gnehs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.