Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
chore: rename basic to telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Aug 1, 2024
1 parent bfb3b41 commit d29fe0f
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/helpers/chat-gpt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorType } from "../types/basic";
import { ErrorType } from "../types/telegram";
import { PROMPT_SYSTEM, PROMPT_USER } from "./prompt";
import { removeNewlinesAndExtractValues } from "./utils";

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/navigation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ENABLE_TOPIC } from "../constants";
import { CallbackQueryType, KeyboardDataType } from "../types/basic";
import { CallbackQueryType, KeyboardDataType } from "../types/telegram";

import { setUserSession } from "./session";
import { getForumById, getForums, hasEnabledForum } from "./supabase";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/oauth-login.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GITHUB_PATHNAME } from "../constants";
import { ExtendableEventType } from "../types/basic";
import { ExtendableEventType } from "../types/telegram";
import { getUserDataFromUsername } from "./github";
import { deleteUserSession, getUserSession, hasUserSession } from "./session";
import { bindGithubToTelegramUser } from "./supabase";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/telegram.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ENABLE_TOPIC, GITHUB_PATHNAME } from "../constants";
import { KeyboardDataType } from "../types/basic";
import { KeyboardDataType } from "../types/telegram";
import { createGithubTelegramLink } from "./github";
import { deleteUserSession, getUserSession, hasUserSession } from "./session";
import { addForum, addTelegramBot, getForumByThreadId, getTelegramBotByFromId, linkGithubRepoToTelegram, linkGithubRepoToTelegramForum } from "./supabase";
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/triggers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiParam, DataType, KeyboardDataType } from "../types/basic";
import { ApiParam, DataType, KeyboardDataType } from "../types/telegram";
import { createKeyboardRow, escapeMarkdown } from "./utils";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { KeyboardDataType, ParsedDataType, TaskInfoType } from "../types/basic";
import { KeyboardDataType, ParsedDataType, TaskInfoType } from "../types/telegram";
import { getForum, getRepoByGroupId } from "./supabase";

// global variable to track the last successful analysis timestamp
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/webhook.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExtendableEventType } from "../types/basic";
import { ExtendableEventType } from "../types/telegram";
import { JwtResponse, validateJwt } from "./jwt";
import { replyMessage, sendReply } from "./triggers";
import { escapeMarkdown } from "./utils";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
slashCommandCheck,
} from "./helpers/utils";
import { sendLogsToGroup } from "./helpers/webhook";
import { CallbackQueryType, ExtendableEventType, FetchEventType, MessageType, MyChatQueryType, UpdateType } from "./types/basic";
import { CallbackQueryType, ExtendableEventType, FetchEventType, MessageType, MyChatQueryType, UpdateType } from "./types/telegram";

/**
* Wait for requests to the worker
Expand Down

0 comments on commit d29fe0f

Please sign in to comment.