This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# これはなに? | |
# これは研究室のDiscordで、日替わりの朝礼担当(順番は固定)に毎朝9時にメンションを飛ばすためのシェルスクリプトです。 | |
# 実行自体はcronで行っています。 | |
# 朝礼がすでにされたかどうかは見てないので、9時以前に朝礼が行われていたとしても問答無用で投稿されます。 | |
# また、現時点では後述の対応を行っていないので、祝日等を無視して、月曜日から金曜日まで投稿されます。 | |
# 祝日対応について | |
# cronでは、「0 9 * * 1-5 sh ~/seminar_discord_tool/morning_assembly.sh」 と実行していますが、 |