Skip to content

TCU-vRSA/fetch-tcu-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch-tcu-node

TCU各種オリエンテーションサイト・お知らせサイト等の差分を取得してくるbotです。DiscordのWebhookに飛ばします。

導入

  • コマンドの実行
git clone https://github.com/TCU-vRSA/fetch-tcu-node.git
cd fetch-tcu-node
yarn install
  • .envファイルの作成
WEBHOOK=DiscordのWebhook URL
  • URL一覧ファイルの作成 現時点では、同梱のlist.txtファイルに、以下のURLが記載されています。文字コードはUTF-8にしてください。
https://grp.tcu.ac.jp/online/forstudents/
https://grp.tcu.ac.jp/kyoumu/
https://grp.tcu.ac.jp/kyoumu/orientation/sc/
https://grp.tcu.ac.jp/kyoumu/orientation/yc/
https://grp.tcu.ac.jp/kyoumu/orientation/tc/
https://grp.tcu.ac.jp/kyoumu/orientation/studyabroad/
https://grp.tcu.ac.jp/kyoumu/orientation/sc2/
https://grp.tcu.ac.jp/kyoumu/orientation/yc2/
https://grp.tcu.ac.jp/kyoumu/orientation/tc2/

実行

引数にURLリストを指定して下さい。

node ./main.js ./list.txt

後はお好みでcronを設定すると、定期的に巡回して、指定したDiscordチャンネルに差分情報を送信することができます。

License

MIT License

About

都市大関連サイト差分チェッカー

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •