diff --git a/src/lib/checkUpdateSurveys.js b/src/lib/checkUpdateSurveys.js index f76168d..1b2a829 100644 --- a/src/lib/checkUpdateSurveys.js +++ b/src/lib/checkUpdateSurveys.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import { updateSurvey } from "./updateSurvey.js"; import { summarizeFrequency } from "../config.js"; diff --git a/src/lib/gptClient.js b/src/lib/gptClient.js index a4cbaa3..4432f17 100644 --- a/src/lib/gptClient.js +++ b/src/lib/gptClient.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import OpenAI from "openai"; const gpt = async (apikey, system, user, maxTries = 5) => { diff --git a/src/lib/makeSurveyPost.js b/src/lib/makeSurveyPost.js index 3467474..da2b41c 100644 --- a/src/lib/makeSurveyPost.js +++ b/src/lib/makeSurveyPost.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import surveyToText from "./surveyToText.js"; export const makeSurveyPost = async (redisClient, surveyName) => { diff --git a/src/lib/startAutoPosting.js b/src/lib/startAutoPosting.js index 05dc058..ab832ae 100644 --- a/src/lib/startAutoPosting.js +++ b/src/lib/startAutoPosting.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import { summarizeFrequency } from "../config.js"; import { makeSurveyPost } from "./makeSurveyPost.js"; diff --git a/src/lib/surveyToText.js b/src/lib/surveyToText.js index e2e1a19..acdb09b 100644 --- a/src/lib/surveyToText.js +++ b/src/lib/surveyToText.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import { AttachmentBuilder } from "discord.js"; import { summarizeFrequency } from "../config.js"; diff --git a/src/lib/threadPost.js b/src/lib/threadPost.js index dfabc32..37d09f4 100644 --- a/src/lib/threadPost.js +++ b/src/lib/threadPost.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import { makeSurveyPost } from "./makeSurveyPost.js"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; import { POST_CHANNEL_ID } from '@config'; diff --git a/src/lib/updateSurvey.js b/src/lib/updateSurvey.js index f5fdb37..98ec2e1 100644 --- a/src/lib/updateSurvey.js +++ b/src/lib/updateSurvey.js @@ -1,4 +1,4 @@ -import log from '../logger' +import log from '../logger.js' import { gpt } from "./gptClient.js"; import { apikey } from "../config.js"; diff --git a/src/logger.js b/src/logger.js index ce8058f..c7aeabc 100644 --- a/src/logger.js +++ b/src/logger.js @@ -1,6 +1,6 @@ import log from 'loglevel'; import prefix from 'loglevel-plugin-prefix'; -import { GSS_LOG_LEVEL } from '@config'; +import { GSS_LOG_LEVEL } from './config.js'; prefix.reg(log); prefix.apply(log, { diff --git a/src/summarizer.js b/src/summarizer.js index 6796ce1..4b2e0ae 100644 --- a/src/summarizer.js +++ b/src/summarizer.js @@ -1,4 +1,4 @@ -import log from "./logger"; +import log from "./logger.js"; import { createClient } from "redis"; import { checkUpdateSurveys } from "./lib/checkUpdateSurveys.js"; import { redisConfig } from "./config.js";