FIX: resolve <const> config + Refactor unessential code (console.log)
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -2,7 +2,7 @@ const express = require("express"); | ... | @@ -2,7 +2,7 @@ const express = require("express"); |
2 | const line = require("@line/bot-sdk"); | 2 | const line = require("@line/bot-sdk"); |
3 | const fs = require("fs"); | 3 | const fs = require("fs"); |
4 | const { handleEvent } = require("./chatbot/index"); | 4 | const { handleEvent } = require("./chatbot/index"); |
5 | -const { config } = require("./chatbot/index"); | 5 | +// const { config } = require("./chatbot/index"); |
6 | const { sequelize } = require("./models"); | 6 | const { sequelize } = require("./models"); |
7 | const database = require("./apis/database"); | 7 | const database = require("./apis/database"); |
8 | 8 | ... | ... |
... | @@ -53,7 +53,8 @@ function handleEvent(event) { | ... | @@ -53,7 +53,8 @@ function handleEvent(event) { |
53 | "RTX 3080", | 53 | "RTX 3080", |
54 | "1000000", | 54 | "1000000", |
55 | "https://dnvefa72aowie.cloudfront.net/origin/article/202205/94cdd237258671d5806a70f64ab2b3c7dcd790da0384b394ef5809fe10c08ced.webp?q=95&s=1440x1440&t=inside", | 55 | "https://dnvefa72aowie.cloudfront.net/origin/article/202205/94cdd237258671d5806a70f64ab2b3c7dcd790da0384b394ef5809fe10c08ced.webp?q=95&s=1440x1440&t=inside", |
56 | - "https://www.daangn.com/articles/403755360" | 56 | + "https://www.daangn.com/articles/403755360", |
57 | + "test설명" | ||
57 | ), | 58 | ), |
58 | }) | 59 | }) |
59 | ); | 60 | ); |
... | @@ -66,7 +67,6 @@ function handleEvent(event) { | ... | @@ -66,7 +67,6 @@ function handleEvent(event) { |
66 | if (found == -1) { | 67 | if (found == -1) { |
67 | return Promise.resolve( | 68 | return Promise.resolve( |
68 | marketMultiSearch(event.message.text).then((res) => { | 69 | marketMultiSearch(event.message.text).then((res) => { |
69 | - console.log(setCarouselMessage(res)); | ||
70 | client.pushMessage(event.source.userId, setCarouselMessage(res)); | 70 | client.pushMessage(event.source.userId, setCarouselMessage(res)); |
71 | }) | 71 | }) |
72 | ); | 72 | ); | ... | ... |
-
Please register or login to post a comment