Skip to content

Commit

Permalink
📍⛩ Checkpoint
Browse files Browse the repository at this point in the history
./routes/bot.js:34833427/24
  • Loading branch information
Glitch (demoaowkoawkoaw) committed Sep 12, 2021
1 parent 06c3e28 commit 1c570f1
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 2 deletions.
Binary file added json.sqlite
Binary file not shown.
4 changes: 2 additions & 2 deletions routes/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ app.post("/connect", async (req, res) => {

if (!findBot) return notFound(res, "Bot not found");

botDatas.set(req.body.uid)
botDatas.set(req.body.uid, req.body.addr)
return Json(res, findBot);
});

Expand All @@ -111,7 +111,7 @@ app.post("/receive", async (req, res) => {

req.body.createAt = Date.now();

fetch(findBotData.addr + "/receive", {
fetch(findBotData + "/receive", {
method: "POST",
headers: {
'Content-Type': 'application/json'
Expand Down
Loading

0 comments on commit 1c570f1

Please sign in to comment.