Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
feat: main process
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Dec 16, 2020
1 parent 3ad713c commit 77f66e3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const conf = require('./init')

const login = require('./crawler/casLogIn')
const log = require('./interface/colorLog')

const school = conf.get('school')
const users = conf.get('users')

if (!users.length) log.error('未找到用户,请运行 ./init.js -u 配置')
users.forEach(async i => {
/**
* Keys of this cookie Object:
* YOU CAN USE THIS COOKIE FOR EVERYTHING
* @compusphere something about cp daliy's app
* @swms continuing log into your school's swms [stu work magagement system]
*/
const cookie = await login(school, i)
})

0 comments on commit 77f66e3

Please sign in to comment.