File tree 3 files changed +2
-14
lines changed
3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,12 @@ The bot can be configured by using the following environment variables:
36
36
1 . Clone this repo
37
37
1 . Install dependencies
38
38
1. `npm install`
39
- 1 . Start the server
39
+ 1 . Run the bot
40
40
1. `npm start`
41
41
42
42
## Repo Overview
43
43
44
44
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
-
48
45
#### [ bot.js] ( ./bot.js )
49
46
The business logic for the bot and where all the configuration gets applied.
50
47
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class LeetCodeBot {
42
42
const response = await fetch_with_cookies ( 'https://leetcode.com/graphql' , {
43
43
method : 'POST' ,
44
44
headers : {
45
- referer : 'no-referrer ' ,
45
+ referer : 'https://leetcode.com/problemset/ ' ,
46
46
'Content-Type' : 'application/json'
47
47
} ,
48
48
body : `{"query":"${ questionOfTheDay } ","operationName":"questionOfToday"}`
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments