Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server port in env #179

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ HELIUS_API_KEY=
## Telegram
TELEGRAM_BOT_TOKEN=

TOGETHER_API_KEY=
TOGETHER_API_KEY=
SERVER_PORT=3000
3 changes: 2 additions & 1 deletion core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const characters = loadCharacters(argv.characters);

const directClient = new Client.DirectClient();

directClient.start(3000);
const serverPort = parseInt(process.env.SERVER_PORT || "3000");
directClient.start(serverPort);

async function startAgent(character: Character) {
console.log(`Starting agent for character ${character.name}`);
Expand Down