apexbot 1.0.1 β†’ 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,8 +71,8 @@ class Gateway {
71
71
  // Start listening
72
72
  return new Promise((resolve) => {
73
73
  this.server.listen(this.config.port, this.config.host, () => {
74
- console.log(`πŸš€ Gateway running at http://${this.config.host}:${this.config.port}`);
75
- console.log(`πŸ“‘ WebSocket at ws://${this.config.host}:${this.config.port}`);
74
+ console.log(`Gateway running at http://${this.config.host}:${this.config.port}`);
75
+ console.log(`WebSocket at ws://${this.config.host}:${this.config.port}`);
76
76
  resolve();
77
77
  });
78
78
  });
@@ -228,7 +228,7 @@ class Gateway {
228
228
  </head>
229
229
  <body>
230
230
  <header>
231
- <h1>πŸ€– ApexBot</h1>
231
+ <h1>ApexBot</h1>
232
232
  <span class="status" id="status">Connecting...</span>
233
233
  </header>
234
234
  <div id="messages"></div>
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ const config = {
54
54
  // Main
55
55
  // ─────────────────────────────────────────────────────────────────
56
56
  async function main() {
57
- console.log('πŸš€ ApexBot starting...');
57
+ console.log('ApexBot starting...');
58
58
  // Initialize adapters
59
59
  const manifold = new manifold_1.default(config.manifold);
60
60
  const engine = new decisionEngine_1.default(config.engine);
@@ -69,9 +69,9 @@ async function main() {
69
69
  telegram = new telegram_1.default(config.telegram);
70
70
  // Handle telegram commands
71
71
  (0, eventBus_1.on)('telegram:status_request', async (req) => {
72
- const status = `πŸ“Š *ApexBot Status*\n` +
72
+ const status = `*ApexBot Status*\n` +
73
73
  `Bankroll: M$${engine.getBankroll().toFixed(2)}\n` +
74
- `Trading: ${tradingEnabled ? 'βœ… Active' : 'πŸ›‘ Stopped'}\n` +
74
+ `Trading: ${tradingEnabled ? 'Active' : 'Stopped'}\n` +
75
75
  `Risk multiplier: ${config.engine.riskMultiplier}`;
76
76
  await telegram.sendTo(req.chatId, status);
77
77
  });
@@ -79,10 +79,10 @@ async function main() {
79
79
  try {
80
80
  const markets = await manifold.getMarkets(10);
81
81
  const list = markets.slice(0, 10).map((m, i) => `${i + 1}. ${m.question.slice(0, 50)}... (${(m.probability * 100).toFixed(0)}%)`).join('\n');
82
- await telegram.sendTo(req.chatId, `πŸ“ˆ *Top Markets*\n\n${list}`);
82
+ await telegram.sendTo(req.chatId, `*Top Markets*\n\n${list}`);
83
83
  }
84
84
  catch (e) {
85
- await telegram.sendTo(req.chatId, '❌ Nie udaΕ‚o siΔ™ pobraΔ‡ rynkΓ³w.');
85
+ await telegram.sendTo(req.chatId, 'Failed to fetch markets.');
86
86
  }
87
87
  });
88
88
  (0, eventBus_1.on)('telegram:stop_trading', () => {
@@ -97,25 +97,25 @@ async function main() {
97
97
  telegram.start().catch((e) => {
98
98
  console.error('Telegram bot failed to start:', e);
99
99
  });
100
- console.log('πŸ€– Telegram bot initialized');
100
+ console.log('Telegram bot initialized');
101
101
  }
102
102
  else {
103
- console.log('⚠️ Telegram not configured (set TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USERS)');
103
+ console.log('Telegram not configured (set TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USERS)');
104
104
  }
105
105
  // ─────────────────────────────────────────────────────────────────
106
106
  // Arbitrage Detector
107
107
  // ─────────────────────────────────────────────────────────────────
108
108
  arbDetector = new arbitrage_1.default(manifold, config.arbitrage);
109
- console.log('πŸ” Arbitrage detector initialized');
109
+ console.log('Arbitrage detector initialized');
110
110
  // ─────────────────────────────────────────────────────────────────
111
111
  // LLM Safety Checker (optional)
112
112
  // ─────────────────────────────────────────────────────────────────
113
113
  if (config.safety.enabled) {
114
114
  safetyChecker = new llmChecker_1.default({ googleApiKey: config.safety.googleApiKey });
115
- console.log('πŸ›‘οΈ LLM safety checker initialized (Gemini)');
115
+ console.log('LLM safety checker initialized (Gemini)');
116
116
  }
117
117
  else {
118
- console.log('⚠️ LLM safety checker not enabled (set GOOGLE_API_KEY)');
118
+ console.log('LLM safety checker not enabled (set GOOGLE_API_KEY)');
119
119
  }
120
120
  // ─────────────────────────────────────────────────────────────────
121
121
  // Event handlers
@@ -182,9 +182,9 @@ async function main() {
182
182
  // ─────────────────────────────────────────────────────────────────
183
183
  if (config.manifold.apiKey) {
184
184
  manifold.connectWebSocket();
185
- console.log('πŸ“‘ WebSocket connection initiated');
185
+ console.log('WebSocket connection initiated');
186
186
  }
187
- console.log('βœ… ApexBot running. Press Ctrl+C to stop.');
187
+ console.log('ApexBot running. Press Ctrl+C to stop.');
188
188
  }
189
189
  // ─────────────────────────────────────────────────────────────────
190
190
  // Entry point
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexbot",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "ApexBot - Your free, private AI assistant. 100% free with Ollama (local AI). Multi-channel: Telegram, Discord, WebChat. Like Clawdbot but open-source!",
5
5
  "main": "dist/index.js",
6
6
  "bin": {