Skip to content

Commit

Permalink
112寒訓
Browse files Browse the repository at this point in the history
  • Loading branch information
Edit-Mr committed Feb 12, 2024
1 parent c0faf2a commit b9eb091
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 4 deletions.
9 changes: 8 additions & 1 deletion events.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @format */

const fs = require("fs");
const readline = require("readline");

Expand All @@ -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;
}
});
Expand Down
9 changes: 6 additions & 3 deletions events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Binary file added img/112寒訓/1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/2.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/3.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/4.JPEG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/5.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/6.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/112寒訓/8.JPEG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b9eb091

Please sign in to comment.