Refactor timetable handling and integrate room mapping in Discord webhook
This commit is contained in:
parent
b7638d2b78
commit
0d34142790
3 changed files with 13 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ async function main() {
|
|||
const YYMMDD = tomorrow.toISOString().slice(0, 10).replace(/-/g, "").toString();
|
||||
// const YYMMDD = "20250306";
|
||||
const weekday = tomorrow.getDay() === 0 ? 6 : tomorrow.getDay() - 1;
|
||||
// const weekday = 4;
|
||||
// const weekday = 2;
|
||||
|
||||
console.log("📅 | date:", YYMMDD);
|
||||
console.log("📅 | weekday:", weekday);
|
||||
|
|
@ -17,7 +17,7 @@ async function main() {
|
|||
schoolId: 41896,
|
||||
grade: 1,
|
||||
classNum: 1,
|
||||
weekday: Weekday.Friday,
|
||||
weekday: weekday,
|
||||
WEBHOOK_URL: process.env.DISCORD_WEBHOOK_SUNRIN_URL as string
|
||||
})
|
||||
await Meal({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue