Refactor timetable handling and integrate room mapping in Discord webhook

This commit is contained in:
암냥 2026-03-06 23:47:10 +09:00
commit 0d34142790
No known key found for this signature in database
3 changed files with 13 additions and 5 deletions

View file

@ -2,6 +2,14 @@ import Comcigan, { School, Weekday } from '@imnyang/comcigan.ts'
const comcigan = new Comcigan()
export default async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) {
export async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) {
return await comcigan.getTimetable(schoolId, grade, classNum, weekday, false)
}
export const room = {
"프밍": "332호실",
"컴구": "333호실",
"체육": "운동장",
"정통": "411호실",
"음악": "음악실"
}