notify-calendar-google

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 16 Imported by: 0

README

GCalReminder 日曆提醒系統

設定

第一次啟動時將會生成 config.yaml 檔案:

CALENDAR_ID: <請輸入自己的日曆編號>
discord:
  enable: false
  TOKEN: ""
  webhook: []
  channel_ids: []
line:
  enable: false
CALENDAR_ID 日曆 ID

該值可通過網址獲取,比如以下範例網址中: https://calendar.google.com/calendar/u/0/embed?src=c_nbtiskrng1pkrcj168db62l4hg@group.calendar.google.com&ctz=Asia/Taipei 可以看到 .../embed?src=c_nbtiskrng1pkrcj168db62l4hg@group.calendar.google.com&ctz=... 其中將 ?src= 後方文字複製到 &ctz= 前即可。

discord

Discord 是一款專為社群設計的免費網路即時通話軟體與數位發行平台,可在上方進行通訊/聊天/圖片等傳送等等。

enable 啟用 discord 提醒

若要關閉 discord 提醒,可將值改成 false 若要開啟則改成 true

TOKEN 機器人權杖

若要使用機器人進行發送,需要提供機器人權杖,可於 #discord/channel_ids 添加目標頻道及移除目標頻道

channel_ids 需發送頻道 ID

初始值:

channel_ids: []

可依您自行添加或刪除頻道 ID。

範例:

channel_ids:
  - 1008911713875267596
  - 1008911713875267595
  # - 可添加其它更多 ID
webhook Webhook 網址

初始值:

webhook: []

可依您自行添加或刪除 Webhook網址。

範例:

webhook:
  - https://discord.com/api/webhooks/1008911713875267596/3tM8c2O8Aqa0bkLNzILV3py-TA5RdY3Xy3aG7EkE-iXavEvmO7QL3A15zWkbbd8DAaUH
  - https://discord.com/api/webhooks/1008911713875267595/eLFCf1Gux1SSTUBOteEJNvHBpGaIm8WtcGyDL8gdoZGSskAIjExs01ygU7VBw-NBaAaZ
  # - 可添加其它更多 Webhook 網址
line notify

尚未實裝

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL