mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-20 00:25:23 +00:00
Update school.ts
This commit is contained in:
parent
b4407874bb
commit
3ce889eb39
1 changed files with 4 additions and 3 deletions
|
|
@ -179,9 +179,10 @@ export async function fetchAssignments() {
|
|||
export function tempcronjob(app: ModifiedApp) {
|
||||
setInterval(() => {
|
||||
try {
|
||||
fetchHomePage()
|
||||
.then((r) => r.json())
|
||||
.then(console.log);
|
||||
fetchHomePage().then(data => {
|
||||
app.db.set(`temp_mykcd_grades`, data)
|
||||
})
|
||||
|
||||
console.log(`omg it worked`);
|
||||
} catch (e) {
|
||||
console.error(e, `#pointer-at-school`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue