From d139d893410f28f176342c4cd3975bc0d969cfe5 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 26 May 2024 03:53:32 -0400 Subject: [PATCH] further cleanup of old code --- .gitignore | 1 + configs/static_api_tokens.toml | 111 ------------------ configs/stripe.toml | 5 - launch_chatbot.bat | 12 -- loc.sh | 11 -- .../codegen_database.sh | 0 .../dev_database_connect.sh | 0 .../execute_all_tests_and_lints.sh | 0 .../execute_dependency_fix.sh | 0 execute_lints.sh => script/execute_lints.sh | 0 execute_tests.sh => script/execute_tests.sh | 0 11 files changed, 1 insertion(+), 139 deletions(-) delete mode 100644 configs/static_api_tokens.toml delete mode 100644 configs/stripe.toml delete mode 100644 launch_chatbot.bat delete mode 100755 loc.sh rename codegen_database.sh => script/codegen_database.sh (100%) rename dev_database_connect.sh => script/dev_database_connect.sh (100%) rename execute_all_tests_and_lints.sh => script/execute_all_tests_and_lints.sh (100%) rename execute_dependency_fix.sh => script/execute_dependency_fix.sh (100%) rename execute_lints.sh => script/execute_lints.sh (100%) rename execute_tests.sh => script/execute_tests.sh (100%) diff --git a/.gitignore b/.gitignore index a690160bd2..3e67772221 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ db.secrets db_secrets.toml env-secrets production_database_secret_connect.sh +script/production_database_secret_connect.sh production_database_secret_query.sh production_database_voice_clone_report_download.sh secrets.toml diff --git a/configs/static_api_tokens.toml b/configs/static_api_tokens.toml deleted file mode 100644 index b8e0821716..0000000000 --- a/configs/static_api_tokens.toml +++ /dev/null @@ -1,111 +0,0 @@ -# A list of statically-configured (not-DB backed) API tokens. -# This file is *NOT* distributed with the docker image. - -# NB: YES, THESE ARE SECRETS. THESE ARE THE ONLY SECRETS IN THE REPO. DON'T DO THIS AGAIN. - -# kubectl delete configmap static-api-tokens --namespace storyteller -# kubectl create configmap static-api-tokens --namespace storyteller --from-file=static_api_tokens.toml - -#[[api_tokens]] -#api_token = 'foo' -#maybe_user_token = 'FOO' -#maybe_priority_level = 3 -#maybe_disable_rate_limiter = true -#maybe_use_high_priority_rate_limiter = true - -# ==================== IMPORTANT ==================== - -# /profile/news_story (FakeYou Channels: News) -# This is our own account. -[[api_tokens]] -api_token = "SAPI:FAKEYOU_NEWS_CHANNEL_74A3AF" -maybe_user_token = 'U:XAWRARC1N89X6' -maybe_priority_level = 30 -#maybe_disable_rate_limiter = true -maybe_use_high_priority_rate_limiter = true - -# /profile/api_vidvoiceai (VidVoice.ai) -# Requested 2022-05-27 in Discord -# Startup raising "institutional capital" -[[api_tokens]] -api_token = "SAPI:VIDVOICE_255DC19ADE35" -maybe_user_token = 'U:CAJN68CFEK0FD' -maybe_priority_level = 5 -#maybe_disable_rate_limiter = true -maybe_use_high_priority_rate_limiter = true - -# /profile/API_IlloJuan -# https://www.twitch.tv/illojuan -# Requested 2022-07-13 in Discord (by Chiqui#9946) -# 2.2M subscriber Twitch streamer, ~100k daily viewers -[[api_tokens]] -api_token = "SAPI:ILLOJUAN_E1C53DA3AA5" -maybe_user_token = 'U:GJY3M7QQ5FT2J' -maybe_priority_level = 11 -#maybe_disable_rate_limiter = true -maybe_use_high_priority_rate_limiter = true - -# ==================== LESS IMPORTANT ==================== - -# /profile/api_system32 (!$ystem32#7779) -# Requested 2022-07-18 in Discord DM -# Javscript developer, Spanish, only in FakeYou. Not sure what the purpose is. -[[api_tokens]] -api_token = "SAPI:SYS32_C3268F903D95" -maybe_user_token = 'U:VZ23QGC4D641C' - -# /profile/api_ak (Assassin's_King#5341) -# Requested 2022-07-12 in Discord DM -# Using for iMessage app -[[api_tokens]] -api_token = "SAPI:AK_C04F7EF9060205" -maybe_user_token = 'U:8HQ2ZR907HM9J' - -# /profile/api_d (DanLop#6659) -# Requested 2022-07-07 in Discord DM -# Using for Discord bot in 7000 servers. -[[api_tokens]] -api_token = "SAPI:D_515590A3E79F5EF9" -maybe_user_token = 'U:6WY1PGK4SEF95' - -# /profile/api_j (James222#8264) -# Requested 2022-06-06 in Discord DM -# Using for "Jarvis". Made C# bindings. In Uberduck server, using them. -[[api_tokens]] -api_token = "SAPI:J_6E75E7543E1AC93D1" -maybe_user_token = 'U:1BC03G9Z6P198' - -# /profile/api_edymuro (EdyMuro#8205) -# Requested 2022-04-18 in Discord chat with Vegito -# Using for their own mobile TTS app. -[[api_tokens]] -api_token = "SAPI:EDYMURO_A648684D5C6FDCFD" -maybe_user_token = 'U:VR4HNTYCDBR9W' - -# /profile/api_ftk789 (ftk789#7898) -# Twitch TTS / Moderator -# Requested 2022-04-27 -[[api_tokens]] -api_token = "SAPI:FTK789_6096133E1D79D6FB" -maybe_user_token = 'U:0S09H086R6TRH' - -# /profile/Hmm (ID10T#6255) -# Requested 2022-04-29 in Discord -# Using for their own mobile TTS app. -[[api_tokens]] -api_token = "SAPI:HMM_7B3CFC9D64A90006" -maybe_user_token = 'U:B2MQPN6ZGAXH5' - -# /profile/majd (Majd#3540) -# Requested 2022-05-01 in Discord -# For Elon Musk + Unity experiment -[[api_tokens]] -api_token = "SAPI:MAJD_0001A330EC41FB6D" -maybe_user_token = 'U:WSKSXDAZVXY5W' - -## /profile/api_duke (Duke#4009) -## Wants this for a Hackathon but "won't pay". -## Update: Cancelled hackathon -#[[api_tokens]] -#api_token = "API:TEMPORARY_DUKE_97FA10" -#maybe_user_token = 'U:D3TR4XRJZ3K3R' diff --git a/configs/stripe.toml b/configs/stripe.toml deleted file mode 100644 index 06bc193b69..0000000000 --- a/configs/stripe.toml +++ /dev/null @@ -1,5 +0,0 @@ -# Stripe configs -# This file will get bundled with `storyteller-web` in the Docker image, -# but it can be overwritten by Kubernetes if necessary. -# IT CONTAINS NO SECRETS, SUCH AS API KEYS. - diff --git a/launch_chatbot.bat b/launch_chatbot.bat deleted file mode 100644 index 4fb089dd8c..0000000000 --- a/launch_chatbot.bat +++ /dev/null @@ -1,12 +0,0 @@ -REM Comments on windows use "REM". Weird-ass platform. - -REM Make sure migrations are up to date -pushd crates\programs\aichatbot-sidecar -set DATABASE_URL=sqlite://../../../runtime_data/database.db -diesel migration run -popd - -REM Start the sidecar -set DATABASE_URL=sqlite://runtime_data/database.db -cargo run --bin aichatbot-sidecar - diff --git a/loc.sh b/loc.sh deleted file mode 100755 index 50e23caf80..0000000000 --- a/loc.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -wc -l \ - Cargo.toml \ - Dockerfile \ - migrations/*/*.sql \ - crates/*/*/*/*.rs \ - crates/*/*/*/*/*.rs \ - crates/*/*/*/*/*/*.rs \ - crates/*/*/*/*/*/*/*.rs \ - crates/*/*/*/*/*/*/*/*.rs \ - | sort -n diff --git a/codegen_database.sh b/script/codegen_database.sh similarity index 100% rename from codegen_database.sh rename to script/codegen_database.sh diff --git a/dev_database_connect.sh b/script/dev_database_connect.sh similarity index 100% rename from dev_database_connect.sh rename to script/dev_database_connect.sh diff --git a/execute_all_tests_and_lints.sh b/script/execute_all_tests_and_lints.sh similarity index 100% rename from execute_all_tests_and_lints.sh rename to script/execute_all_tests_and_lints.sh diff --git a/execute_dependency_fix.sh b/script/execute_dependency_fix.sh similarity index 100% rename from execute_dependency_fix.sh rename to script/execute_dependency_fix.sh diff --git a/execute_lints.sh b/script/execute_lints.sh similarity index 100% rename from execute_lints.sh rename to script/execute_lints.sh diff --git a/execute_tests.sh b/script/execute_tests.sh similarity index 100% rename from execute_tests.sh rename to script/execute_tests.sh