Skip to content

Commit c9f47e3

Browse files
committed
chore: update docs, remove routes/
1 parent 1f963f3 commit c9f47e3

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

Diff for: README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ The bot can be configured by using the following environment variables:
3636
1. Clone this repo
3737
1. Install dependencies
3838
1. `npm install`
39-
1. Start the server
39+
1. Run the bot
4040
1. `npm start`
4141

4242
## Repo Overview
4343

4444
This repository is composed of three main files.
45-
#### [server.js](./server.js)
46-
An express server that isn't really used right now but could be expanded to house an API. It's also the entry point for our bot.
47-
4845
#### [bot.js](./bot.js)
4946
The business logic for the bot and where all the configuration gets applied.
5047

Diff for: bot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LeetCodeBot {
4242
const response = await fetch_with_cookies('https://leetcode.com/graphql', {
4343
method: 'POST',
4444
headers: {
45-
referer: 'no-referrer',
45+
referer: 'https://leetcode.com/problemset/',
4646
'Content-Type': 'application/json'
4747
},
4848
body: `{"query":"${questionOfTheDay}","operationName":"questionOfToday"}`

Diff for: routes/index.js

-9
This file was deleted.

0 commit comments

Comments
 (0)