Skip to content
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
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# BluGlo

A Fortnite STW taxibot manager with a real-time web dashboard and interactive CLI.
A Fortnite STW taxibot manager with an interactive CLI.

## Installation

```bash
npm install
bun install
```

## Run

```bash
npm start
bun start
```

This starts:

- Dashboard: `http://localhost:3000`
- Interactive CLI in the same terminal

## CLI commands
Expand Down Expand Up @@ -45,7 +44,6 @@ You can use just the first 8 characters of an `accountId` in CLI commands.
- `bot.auth`
- `bot.timings`
- `bot.reconnect`
- `dashboard`
- `dataFile`

### Auth flow used by `/add`
Expand Down
5 changes: 0 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,5 @@
"xmppMaxConnectionRetries": 3
}
},
"dashboard": {
"port": 3000,
"host": "0.0.0.0",
"title": "BluGlo Dashboard"
},
"dataFile": "./data/accounts.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bluglo-stw",
"version": "1.0.0",
"description": "A Fortnite STW taxibot manager with a real-time web dashboard and interactive CLI.",
"description": "A Fortnite STW taxibot manager with an interactive CLI.",
"type": "module",
"main": "dist/index.js",
"scripts": {
Expand Down
684 changes: 0 additions & 684 deletions public/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class BluGlo {
}

/**
* Updates the in-memory presence and broadcasts it to the dashboard.
* Updates the in-memory presence and emits runtime status events.
*/
public setPresence(presence: PresenceValue, status: string): void {
this.presence = presence;
Expand Down
2 changes: 1 addition & 1 deletion src/bot/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* High-level runtime presence shown in the dashboard and CLI.
* High-level runtime presence shown in the CLI and runtime events.
*
* @see https://fnbr.js.org
* @see https://github.com/fnbrjs/fnbr.js
Expand Down
1 change: 0 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ function compactLog(text: string): string {
.trim();

value = value
.replace(/Dashboard at .*/i, "Dashboard ready")
.replace(/Loading (\d+) account\(s\)\.\.\./i, "Loading $1 account(s)")
.replace(/No saved accounts found\. Use \/add to add one\./i, "No saved accounts")
.replace(/Exchanging authorization code with .*?/i, "Exchanging auth code")
Expand Down
6 changes: 0 additions & 6 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ export const BOT = {
},
} as const;

export const DASH = {
port: config.dashboard?.port ?? 3000,
host: config.dashboard?.host ?? "0.0.0.0",
title: config.dashboard?.title ?? "BluGlo Dashboard",
} as const;

export const TIMINGS = {
initTimeoutMs: timings.initTimeoutMs ?? 10000,
postAcceptDelayMs: timings.postAcceptDelayMs ?? 1000,
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { startCLI } from "./cli.js";
import { log } from "./events.js";
import { BotManager } from "./manager.js";
import { startServer } from "./server.js";

async function main(): Promise<void> {
console.log("\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
Expand All @@ -10,7 +9,6 @@ async function main(): Promise<void> {

const manager = new BotManager();

startServer(manager);
manager.loadAll();
startCLI(manager);

Expand Down
125 changes: 0 additions & 125 deletions src/server.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ export interface ConfigShape {
timings?: Record<string, number>;
reconnect?: Record<string, number>;
};
dashboard?: {
port?: number;
host?: string;
title?: string;
};
dataFile?: string;
}

Expand Down
Loading