Skip to content

Commit

Permalink
update STMP.bat to add ST basic auth key to secrets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
RossAscends committed Dec 20, 2023
1 parent 5b207cf commit 5067af8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions STMP.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@echo off
setlocal
pushd %~dp0

set "api_key=_YOUR_API_KEY_HERE_"
set "auth_string=_STUsername_:_STPassword_"
set "secrets=secrets.json"

ECHO ===========================
ECHO SillyTavern MultiPlayer
ECHO ===========================
Expand Down Expand Up @@ -30,8 +35,13 @@ IF EXIST secrets.json (


:CreateNewIfMissing
echo {"api_key_tabby":"_YOUR_API_KEY_HERE_"} > secrets.json
echo secrets.json created -- PUT YOUR TABBY API KEY IN HERE AND RESTART THE SERVER
(
echo {
echo "api_key_tabby":"%api_key%",
echo "sillytavern_basic_auth_string":"%auth_string%"
echo }
) > "%secrets%"
echo %secrets% created -- PUT YOUR TABBY API KEY AND SillyTavern BASIC AUTH CREDENTIALS IN THAT FILE AND RESTART THE SERVER
ECHO ===========================

:StartServer
Expand Down

0 comments on commit 5067af8

Please sign in to comment.