유명현

EDIT: refactor - make directory apis/

const express = require("express");
const line = require("@line/bot-sdk");
const setFlexMessage = require("./pushMessage");
const setFlexMessage = require("./apis/setFlexMessage");
require("dotenv").config();
const config = {
channelAccessToken: process.env.channelAccessToken,
......@@ -41,3 +41,4 @@ function handleEvent(event) {
}
app.listen(3000);
console.log("listening...");
......
This diff is collapsed. Click to expand it.
......@@ -15,6 +15,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@line/bot-sdk": "^7.5.0",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"nodemon": "^2.0.16"
}
......