clydeclaw 1.0.0 → 1.1.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clydeclaw",
3
- "version": "1.0.0",
4
- "description": "High-performance, minimal Discord AI bot CLI a fast alternative to OpenClaw.",
3
+ "version": "1.1.0",
4
+ "description": "i made this for me and my firend",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "clydeclaw": "./bin/clydeclaw.js"
@@ -20,7 +20,7 @@
20
20
  "ollama",
21
21
  "lmstudio"
22
22
  ],
23
- "author": "",
23
+ "author": "tommy howsego",
24
24
  "license": "MIT",
25
25
  "engines": {
26
26
  "node": ">=20.0.0"
@@ -28,4 +28,4 @@
28
28
  "dependencies": {
29
29
  "discord.js": "^14.16.3"
30
30
  }
31
- }
31
+ }
@@ -1,6 +1,9 @@
1
1
  export function createOpenAIProvider(aiConfig) {
2
2
  const { endpoint, model, apiKey } = aiConfig;
3
- const baseUrl = endpoint.replace(/\/+$/, '');
3
+ let baseUrl = endpoint.replace(/\/+$/, '');
4
+ if (!baseUrl.endsWith('/v1')) {
5
+ baseUrl += '/v1';
6
+ }
4
7
 
5
8
  const headers = {
6
9
  'Content-Type': 'application/json',
@@ -1,4 +1,4 @@
1
- import { Client, GatewayIntentBits, Partials } from 'discord.js';
1
+ import { Client, GatewayIntentBits, Partials, ActivityType } from 'discord.js';
2
2
  import { Context } from '../core/context.js';
3
3
  import { handleSlashCommands } from './slashCommands.js';
4
4
  import { log } from '../utils/logger.js';
@@ -19,12 +19,17 @@ export async function createDiscordBot(cfg, ai) {
19
19
 
20
20
  client.once('ready', () => {
21
21
  log.info(`Logged in as ${client.user.tag}`);
22
+ client.user.setActivity({
23
+ type: ActivityType.Custom,
24
+ name: 'custom',
25
+ state: 'Powered by ClydeClaw'
26
+ });
22
27
  });
23
28
 
24
29
  client.on('messageCreate', async (message) => {
25
30
  if (message.author.bot) return;
26
31
 
27
- const isMentioned = message.mentions.has(client.user);
32
+ const isMentioned = message.mentions.users.has(client.user.id);
28
33
  const isDM = !message.guild;
29
34
 
30
35
  if (!isMentioned && !isDM) return;