@mulmobridge/discord 0.1.2 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +6 -4
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@
11
11
  import "dotenv/config";
12
12
  import { Client, GatewayIntentBits, Partials } from "discord.js";
13
13
  import { createBridgeClient } from "@mulmobridge/client";
14
+ import { parseCsvSet } from "@mulmoclaude/common";
14
15
  const TRANSPORT_ID = "discord";
15
16
  const MAX_DISCORD_LENGTH = 2000;
16
17
  const token = process.env.DISCORD_BOT_TOKEN;
@@ -18,10 +19,7 @@ if (!token) {
18
19
  console.error("DISCORD_BOT_TOKEN is required.\nSee README for setup instructions.");
19
20
  process.exit(1);
20
21
  }
21
- const allowedChannels = new Set((process.env.DISCORD_ALLOWED_CHANNELS ?? "")
22
- .split(",")
23
- .map((channelId) => channelId.trim())
24
- .filter(Boolean));
22
+ const allowedChannels = parseCsvSet(process.env.DISCORD_ALLOWED_CHANNELS);
25
23
  const allowAll = allowedChannels.size === 0;
26
24
  const discord = new Client({
27
25
  intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulmobridge/discord",
3
- "version": "0.1.2",
3
+ "version": "1.0.0",
4
4
  "description": "Discord bridge for MulmoBridge — connect a Discord bot to MulmoClaude",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,13 +16,15 @@
16
16
  "build": "tsc",
17
17
  "prepack": "yarn build",
18
18
  "typecheck": "tsc --noEmit",
19
- "test": "echo no tests yet"
19
+ "test": "echo no tests yet",
20
+ "lint": "eslint src"
20
21
  },
21
22
  "license": "MIT",
22
23
  "author": "Receptron Team",
23
24
  "dependencies": {
24
- "@mulmobridge/client": "^0.1.4",
25
- "@mulmobridge/protocol": "^0.1.4",
25
+ "@mulmobridge/client": "^1.0.0",
26
+ "@mulmobridge/protocol": "^1.0.0",
27
+ "@mulmoclaude/common": "^1.1.0",
26
28
  "discord.js": "^14.27.0",
27
29
  "dotenv": "^17.0.0"
28
30
  },