Skip to content

ravenchan/PTTAutoSign

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 加進群組

About

PTT 自動簽到

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%