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
|
|
@ -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호실",
|
||||
"음악": "음악실"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue