Skip to content

Commit

Permalink
neuro calls
Browse files Browse the repository at this point in the history
  • Loading branch information
katsuhira02 committed Jul 15, 2024
1 parent 1922003 commit 34dea65
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 131 deletions.
7 changes: 7 additions & 0 deletions supabase/functions/_shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ if (!Deno.env.get("SYNC_LABS_API_KEY")) {
throw new Error("SYNC_LABS_API_KEY is not set");
}

if (!Deno.env.get("TELEGRAM_NEURO_CALLS_TOKEN")) {
throw new Error("TELEGRAM_NEURO_CALLS_TOKEN is not set");
}

export const DEV = Deno.env.get("DEV") === "true" ? true : false;

export const HEYGEN_URL = Deno.env.get("HEYGEN_URL");
Expand All @@ -42,6 +46,9 @@ export const SYNC_LABS_API_KEY = Deno.env.get("SYNC_LABS_API_KEY");
export const AI_KOSHEY = DEV
? Deno.env.get("TELEGRAM_BOT_TOKEN_AI_KOSHEY_TEST")
: Deno.env.get("TELEGRAM_BOT_TOKEN_AI_KOSHEY");
export const NEURO_CALLS = DEV
? Deno.env.get("TELEGRAM_BOT_TOKEN_AI_KOSHEY_TEST")
: Deno.env.get("TELEGRAM_NEURO_CALLS_TOKEN");
// local
export const LOCAL_SUPABASE_URL = Deno.env.get("LOCAL_SUPABASE_URL");
export const LOCAL_SUPABASE_URL_ANON_KEY = Deno.env.get(
Expand Down
1 change: 1 addition & 0 deletions supabase/functions/_shared/telegram/bots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const logBotToken = Deno.env.get("TELEGRAM_BOT_TOKEN_LOG");
console.log(DEV, "DEV");
const testBot = Deno.env.get("TEST_BOT");
export const botUsername = DEV ? testBot : "ai_koshey_bot";
export const botUsernameNeuroCalls = DEV ? testBot : "neurocalls_chat_bot"
console.log(botUsername, "botUsername");

const token = DEV ? tokenTest : tokenProd;
Expand Down
Loading

0 comments on commit 34dea65

Please sign in to comment.