https://github.com/bwsix/clhs-nowotify-twitter-bot
使用 Discord / Line 及時接收壢中官網公告
https://github.com/bwsix/clhs-nowotify-twitter-bot
clhs twitterbot
Last synced: 7 months ago
JSON representation
使用 Discord / Line 及時接收壢中官網公告
- Host: GitHub
- URL: https://github.com/bwsix/clhs-nowotify-twitter-bot
- Owner: BWsix
- Created: 2022-03-06T04:31:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-25T05:28:30.000Z (over 3 years ago)
- Last Synced: 2024-04-24T03:22:51.085Z (over 1 year ago)
- Topics: clhs, twitterbot
- Language: TypeScript
- Homepage: https://twitter.com/not_clhs
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLHS nowotify - twitter bot
使用 Discord / Line 及時接收壢中官網公告
**前往[設定頁面][clhs_nowotify]**
**前往[CLHS nowotify - client][repo_client]**
**前往[CLHS nowotify - server][repo_server]**
**前往[CLHS nowotify - twitter bot][repo_twitter_bot]**## 目錄
- [運作原理](#theory)
- [特色](#features)
- [安裝教學](#tutorial)
- [特別感謝](#credit)CLHS nowotify 使用 python 伺服器監聽壢中官網
在發現公告內容有更新時,使用 `discord webhook` / `line notify` 將最新公告推送給用戶因為經費有限,伺服器只在每日早上 7 點到晚上 7 點運作 (歡迎贊助 👍)
### 架構圖
> 
### 快速、簡單的安裝
可以在[設定頁面][clhs_nowotify]依照教學登錄資訊(discord / line)後啟用
> 因為 line notify 只能從電腦版網站做設定,如果要使用 line 接收通知請記得使用電腦安裝
### 客製化設定
目前可以設定的項目有 :
- 公告的來源(首頁 / 新生專區)
- 只接收釘選公告(有紅色 `HOT!` 標籤的)
- 是否過濾特定公告(有關公務人員 / 標案等)(安裝教學也可以在[設定頁面][clhs_nowotify]看到)
**因為 line notify 只能從電腦版網站做設定,如果要使用 line 接收通知請記得使用電腦安裝**
1. 前往並使用 google 帳號登入[CLHS nowotify 設定頁面][clhs_nowotify]

2. 點選 `新增 nowotify`

3. 填寫表格

如何取得Discord webhook url
1. 點選 `文字頻道` 旁的 `編輯頻道` 按鈕

2. 進入 `整合` 頁面

3. 選擇 `建立 Webhook`
\*如果已經有該頻道已經有 Webhook,請選擇 `查看 Webhook` -> `新 Webhook`
4. 點選 `複製 Webhook 網址`

5. 繼續完成上方的表格就完成設定了!
如何取得Line notify token
1. 前往 Line Notify 設定頁面並登入 **(這部分只能在電腦設定)**
https://notify-bot.line.me/my/
\*首次登入會需要在 Line 輸入驗證碼
2. 點選 `發行權杖`

3. 完成設定後點選 `發行`
\*權杖名稱建議填寫 **CLHS-nowotify**,方便日後辨識- 可以選擇 "透過 1 對 1 聊天接收 LINE Notify 的通知",直接從 "Line Notify 的帳號" 接收通知
- 或是選擇一個群組來接收通知
4. 點選複製

5. 最後一步
- 如果是選擇 "透過 1 對 1 聊天接收 LINE Notify 的通知",到這邊就完成設定了
- 如果是選擇 "使用群組接收通知",則需要依照指示將 "LINE Notify" 帳號加入群組
[@storiesbang][@storiesbang]: 系統測試和提供更新方向
以及所有 CLHS nowotify 的用戶,謝謝你們的支持
[clhs_nowotify]: https://bwsix.github.io/CLHS-nowotify/
[repo_client]: https://github.com/BWsix/CLHS-nowotify
[repo_server]: https://github.com/BWsix/CLHS-nowotify-server
[repo_twitter_bot]: https://github.com/BWsix/CLHS-nowotify-twitter-bot
[@storiesbang]: https://github.com/storiesbang