Skip to content

Commit

Permalink
Merge pull request #58 from berkingurcan/implement-active-passive-and…
Browse files Browse the repository at this point in the history
…-timeframe-features-for-surveys

Update summarizer.js
  • Loading branch information
johnmarcou authored Jun 11, 2024
2 parents c093531 + a10721b commit d69cc86
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/checkUpdateSurveys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import log from '../logger'
import log from '../logger.js'
import { updateSurvey } from "./updateSurvey.js";
import { summarizeFrequency } from "../config.js";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/gptClient.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/makeSurveyPost.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import log from '../logger'
import log from '../logger.js'
import surveyToText from "./surveyToText.js";

export const makeSurveyPost = async (redisClient, surveyName) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/startAutoPosting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import log from '../logger'
import log from '../logger.js'

import { summarizeFrequency } from "../config.js";
import { makeSurveyPost } from "./makeSurveyPost.js";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/surveyToText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import log from '../logger'
import log from '../logger.js'

import { AttachmentBuilder } from "discord.js";
import { summarizeFrequency } from "../config.js";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/threadPost.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/updateSurvey.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import log from '../logger'
import log from '../logger.js'

import { gpt } from "./gptClient.js";
import { apikey } from "../config.js";
Expand Down
2 changes: 1 addition & 1 deletion src/logger.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/summarizer.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit d69cc86

Please sign in to comment.