diff --git a/events.js b/events.js index e6fdeb2..5610a22 100644 --- a/events.js +++ b/events.js @@ -1,3 +1,5 @@ +/** @format */ + const fs = require("fs"); const readline = require("readline"); @@ -14,19 +16,24 @@ rl.on("line", line => { if (line.startsWith("#")) { currentActivity = { title: line.substring(1).trim(), + subtitle: "", description: "", date: "", location: "", price: "", + link: "", image: "", }; activities.push(currentActivity); } else if (line.startsWith("*")) { const value = line.substring(1).trim(); - if (!currentActivity.description) currentActivity.description = value; + if (!currentActivity.subtitle) currentActivity.subtitle = value; + else if (!currentActivity.description) + currentActivity.description = value; else if (!currentActivity.date) currentActivity.date = value; else if (!currentActivity.location) currentActivity.location = value; else if (!currentActivity.price) currentActivity.price = value; + else if (!currentActivity.link) currentActivity.link = value; else if (!currentActivity.image) currentActivity.image = value; } }); diff --git a/events.md b/events.md index 32b49ae..30e1425 100644 --- a/events.md +++ b/events.md @@ -4,13 +4,16 @@ * 12/2(六)10:00 ~ 15:00 * 線上(Jitsi) * 免費 +* * https://plus.unsplash.com/premium_photo-1661764393655-1dbffee8c0ce -# 12月主題課程 +# Discord Bot -* 每天都在用網路上網的您是否知道網路的內部架構?想知道網路是怎麼運作的嗎?這次 12 月主題課程為【基礎網路架構】,提供您網路的基本知識、傳輸媒介,並帶領您用模擬器建立一個小型區域網路。想要來跟我們一起了解網路的架構嗎?趕快來報名吧! -* 12/8(五)、12/22(五)、12/23(六) 20:00 ~ 21:30 +* 2月主題課程 +* 播放音樂、自動分發身分組、聊天和執行程式等,任何你想到的功能都可以在 Discord Bot 中實現!想要輕鬆管理好自己的伺服器嗎?來跟我們一起製作這些酷酷且實用的機器人吧! +* 2/18(日)、2/25(日)晚上 19:30 ~ 21:30 * 線上(Jitsi) * 免費 +* https://forms.gle/2PtK7cWqQadso3xQ8 * https://images.unsplash.com/photo-1525373698358-041e3a460346 diff --git "a/img/112\345\257\222\350\250\223/1.JPG" "b/img/112\345\257\222\350\250\223/1.JPG" new file mode 100644 index 0000000..258fe46 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/1.JPG" differ diff --git "a/img/112\345\257\222\350\250\223/2.JPG" "b/img/112\345\257\222\350\250\223/2.JPG" new file mode 100644 index 0000000..2a1ca72 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/2.JPG" differ diff --git "a/img/112\345\257\222\350\250\223/3.JPG" "b/img/112\345\257\222\350\250\223/3.JPG" new file mode 100644 index 0000000..5f5feea Binary files /dev/null and "b/img/112\345\257\222\350\250\223/3.JPG" differ diff --git "a/img/112\345\257\222\350\250\223/4.JPEG" "b/img/112\345\257\222\350\250\223/4.JPEG" new file mode 100644 index 0000000..2f26f93 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/4.JPEG" differ diff --git "a/img/112\345\257\222\350\250\223/5.JPG" "b/img/112\345\257\222\350\250\223/5.JPG" new file mode 100644 index 0000000..1195300 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/5.JPG" differ diff --git "a/img/112\345\257\222\350\250\223/6.JPG" "b/img/112\345\257\222\350\250\223/6.JPG" new file mode 100644 index 0000000..10c4f2b Binary files /dev/null and "b/img/112\345\257\222\350\250\223/6.JPG" differ diff --git "a/img/112\345\257\222\350\250\223/7.jpg" "b/img/112\345\257\222\350\250\223/7.jpg" new file mode 100644 index 0000000..b61a335 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/7.jpg" differ diff --git "a/img/112\345\257\222\350\250\223/8.JPEG" "b/img/112\345\257\222\350\250\223/8.JPEG" new file mode 100644 index 0000000..fae04f9 Binary files /dev/null and "b/img/112\345\257\222\350\250\223/8.JPEG" differ