https://github.com/perongh/xports-auto-book
Automatically book tickets for XJTLU Gym
https://github.com/perongh/xports-auto-book
deno deno-kv typescript xjtlu xjtlu-student
Last synced: 2 months ago
JSON representation
Automatically book tickets for XJTLU Gym
- Host: GitHub
- URL: https://github.com/perongh/xports-auto-book
- Owner: PeronGH
- Created: 2023-04-30T09:37:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-30T16:41:23.000Z (about 3 years ago)
- Last Synced: 2025-03-12T16:45:24.251Z (over 1 year ago)
- Topics: deno, deno-kv, typescript, xjtlu, xjtlu-student
- Language: TypeScript
- Homepage: https://xports.deno.dev
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Xports Auto Book
Automatically book tickets for XJTLU Gym.
## Usage
### CLI
```sh
deno run -A cli.ts
```
### Module
```ts
import { autoBook } from "./mod.ts";
await autoBook({
netUserId: "...",
date: "yyyy-MM-dd",
timeName: "hh-mm",
serviceName: "健身",
});
```
### Server
`server.ts` can be hosted on Deno Deploy. Ensure that you have access to Deno KV.