{"id":40,"date":"2026-03-21T22:47:14","date_gmt":"2026-03-21T14:47:14","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-twitch\/"},"modified":"2026-03-21T23:29:17","modified_gmt":"2026-03-21T15:29:17","slug":"channels-twitch","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-twitch\/","title":{"rendered":"Twitch"},"content":{"rendered":"<h1>Twitch<\/h1>\n<h1>Twitch\uff08\u63d2\u4ef6\uff09<\/h1>\n<p>\u901a\u8fc7 IRC \u8fde\u63a5\u652f\u6301 Twitch \u804a\u5929\u3002OpenClaw \u4ee5 Twitch \u7528\u6237\uff08\u673a\u5668\u4eba\u8d26\u6237\uff09\u8eab\u4efd\u8fde\u63a5\uff0c\u5728\u9891\u9053\u4e2d\u63a5\u6536\u548c\u53d1\u9001\u6d88\u606f\u3002<\/p>\n<h2>\u9700\u8981\u63d2\u4ef6<\/h2>\n<p>Twitch \u4f5c\u4e3a\u63d2\u4ef6\u53d1\u5e03\uff0c\u672a\u4e0e\u6838\u5fc3\u5b89\u88c5\u6346\u7ed1\u3002<\/p>\n<p>\u901a\u8fc7 CLI \u5b89\u88c5\uff08npm \u6ce8\u518c\u8868\uff09\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw plugins install @openclaw\/twitch<\/p>\n<pre><code>\n\u672c\u5730\u68c0\u51fa\uff08\u4ece git \u4ed3\u5e93\u8fd0\u884c\u65f6\uff09\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw plugins install .\/extensions\/twitch\n<\/code><\/pre>\n<p>\u8be6\u60c5\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=289\">\u63d2\u4ef6<\/a><\/p>\n<h2>\u5feb\u901f\u8bbe\u7f6e\uff08\u65b0\u624b\uff09<\/h2>\n<ol>\n<li>\u4e3a\u673a\u5668\u4eba\u521b\u5efa\u4e00\u4e2a\u4e13\u7528\u7684 Twitch \u8d26\u6237\uff08\u6216\u4f7f\u7528\u73b0\u6709\u8d26\u6237\uff09\u3002<\/li>\n<li>\u751f\u6210\u51ed\u8bc1\uff1a<a href=\"https:\/\/twitchtokengenerator.com\/\">Twitch Token Generator<\/a><br \/>\n   * \u9009\u62e9 <strong>Bot Token<\/strong><br \/>\n   * \u786e\u8ba4\u5df2\u9009\u62e9 <code>chat:read<\/code> \u548c <code>chat:write<\/code> \u6743\u9650\u8303\u56f4<br \/>\n   * \u590d\u5236 <strong>Client ID<\/strong> \u548c <strong>Access Token<\/strong><\/li>\n<li>\u67e5\u627e\u4f60\u7684 Twitch \u7528\u6237 ID\uff1a<a href=\"https:\/\/www.streamweasels.com\/tools\/convert-twitch-username-to-user-id\/\">https:\/\/www.streamweasels.com\/tools\/convert-twitch-username-to-user-id\/<\/a><\/li>\n<li>\u914d\u7f6e\u4ee4\u724c\uff1a<br \/>\n   * \u73af\u5883\u53d8\u91cf\uff1a<code>OPENCLAW_TWITCH_ACCESS_TOKEN=...<\/code>\uff08\u4ec5\u9650\u9ed8\u8ba4\u8d26\u6237\uff09<br \/>\n   * \u6216\u914d\u7f6e\uff1a<code>channels.twitch.accessToken<\/code><br \/>\n   * \u5982\u679c\u4e24\u8005\u90fd\u8bbe\u7f6e\uff0c\u914d\u7f6e\u4f18\u5148\uff08\u73af\u5883\u53d8\u91cf\u56de\u9000\u4ec5\u9002\u7528\u4e8e\u9ed8\u8ba4\u8d26\u6237\uff09\u3002<\/li>\n<li>\u542f\u52a8 Gateway \u7f51\u5173 \u7f51\u5173\u3002<\/li>\n<\/ol>\n<p><strong>\u26a0\ufe0f \u91cd\u8981\uff1a<\/strong> \u6dfb\u52a0\u8bbf\u95ee\u63a7\u5236\uff08<code>allowFrom<\/code> \u6216 <code>allowedRoles<\/code>\uff09\u4ee5\u9632\u6b62\u672a\u6388\u6743\u7528\u6237\u89e6\u53d1\u673a\u5668\u4eba\u3002<code>requireMention<\/code> \u9ed8\u8ba4\u4e3a <code>true<\/code>\u3002<\/p>\n<p>\u6700\u5c0f\u914d\u7f6e\uff1a<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    twitch: {<br \/>\n      enabled: true,<br \/>\n      username: &#8220;openclaw&#8221;, \/\/ \u673a\u5668\u4eba\u7684 Twitch \u8d26\u6237<br \/>\n      accessToken: &#8220;oauth:abc123&#8230;&#8221;, \/\/ OAuth Access Token\uff08\u6216\u4f7f\u7528 OPENCLAW_TWITCH_ACCESS_TOKEN \u73af\u5883\u53d8\u91cf\uff09<br \/>\n      clientId: &#8220;xyz789&#8230;&#8221;, \/\/ Token Generator \u4e2d\u7684 Client ID<br \/>\n      \u6e20\u9053: &#8220;vevisk&#8221;, \/\/ \u8981\u52a0\u5165\u7684 Twitch \u9891\u9053\u804a\u5929\uff08\u5fc5\u586b\uff09<br \/>\n      allowFrom: [&#8220;123456789&#8221;], \/\/ \uff08\u63a8\u8350\uff09\u4ec5\u9650\u4f60\u7684 Twitch \u7528\u6237 ID &#8211; \u4ece https:\/\/www.streamweasels.com\/tools\/convert-twitch-username-to-user-id\/ \u83b7\u53d6<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u5b83\u662f\u4ec0\u4e48\n\n* \u7531 Gateway \u7f51\u5173\u62e5\u6709\u7684 Twitch \u6e20\u9053\u3002\n* \u786e\u5b9a\u6027\u8def\u7531\uff1a\u56de\u590d\u603b\u662f\u8fd4\u56de\u5230 Twitch\u3002\n* \u6bcf\u4e2a\u8d26\u6237\u6620\u5c04\u5230\u4e00\u4e2a\u9694\u79bb\u7684\u4f1a\u8bdd\u952e `agent:&lt;agentId&gt;:twitch:&lt;accountName&gt;`\u3002\n* `username` \u662f\u673a\u5668\u4eba\u8d26\u6237\uff08\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u7684\u8d26\u6237\uff09\uff0c`channel` \u662f\u8981\u52a0\u5165\u7684\u804a\u5929\u5ba4\u3002\n\n## \u8bbe\u7f6e\uff08\u8be6\u7ec6\uff09\n\n### \u751f\u6210\u51ed\u8bc1\n\n\u4f7f\u7528 [Twitch Token Generator](https:\/\/twitchtokengenerator.com\/)\uff1a\n\n* \u9009\u62e9 **Bot Token**\n* \u786e\u8ba4\u5df2\u9009\u62e9 `chat:read` \u548c `chat:write` \u6743\u9650\u8303\u56f4\n* \u590d\u5236 **Client ID** \u548c **Access Token**\n\n\u65e0\u9700\u624b\u52a8\u6ce8\u518c\u5e94\u7528\u3002\u4ee4\u724c\u5728\u51e0\u5c0f\u65f6\u540e\u8fc7\u671f\u3002\n\n### \u914d\u7f6e\u673a\u5668\u4eba\n\n**\u73af\u5883\u53d8\u91cf\uff08\u4ec5\u9650\u9ed8\u8ba4\u8d26\u6237\uff09\uff1a**\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nOPENCLAW_TWITCH_ACCESS_TOKEN=oauth:abc123...\n<\/code><\/pre>\n<p><strong>\u6216\u914d\u7f6e\uff1a<\/strong><\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    twitch: {<br \/>\n      enabled: true,<br \/>\n      username: &#8220;openclaw&#8221;,<br \/>\n      accessToken: &#8220;oauth:abc123&#8230;&#8221;,<br \/>\n      clientId: &#8220;xyz789&#8230;&#8221;,<br \/>\n      \u6e20\u9053: &#8220;vevisk&#8221;,<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n\u5982\u679c\u73af\u5883\u53d8\u91cf\u548c\u914d\u7f6e\u90fd\u8bbe\u7f6e\u4e86\uff0c\u914d\u7f6e\u4f18\u5148\u3002\n\n### \u8bbf\u95ee\u63a7\u5236\uff08\u63a8\u8350\uff09\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    twitch: {\n      allowFrom: [&quot;123456789&quot;], \/\/ \uff08\u63a8\u8350\uff09\u4ec5\u9650\u4f60\u7684 Twitch \u7528\u6237 ID\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u4f18\u5148\u4f7f\u7528 <code>allowFrom<\/code> \u4f5c\u4e3a\u786c\u6027\u5141\u8bb8\u5217\u8868\u3002\u5982\u679c\u4f60\u60f3\u8981\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\u63a7\u5236\uff0c\u8bf7\u6539\u7528 <code>allowedRoles<\/code>\u3002<\/p>\n<p><strong>\u53ef\u7528\u89d2\u8272\uff1a<\/strong> <code>\"moderator\"<\/code>\u3001<code>\"owner\"<\/code>\u3001<code>\"vip\"<\/code>\u3001<code>\"subscriber\"<\/code>\u3001<code>\"all\"<\/code>\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u7528\u7528\u6237 ID\uff1f<\/strong> \u7528\u6237\u540d\u53ef\u4ee5\u66f4\u6539\uff0c\u5141\u8bb8\u5192\u5145\u3002\u7528\u6237 ID \u662f\u6c38\u4e45\u7684\u3002<\/p>\n<p>\u67e5\u627e\u4f60\u7684 Twitch \u7528\u6237 ID\uff1a<a href=\"https:\/\/www.streamweasels.com\/tools\/convert-twitch-username-%20to-user-id\/\uff08\u5c06\u4f60\u7684\">https:\/\/www.streamweasels.com\/tools\/convert-twitch-username-%20to-user-id\/\uff08\u5c06\u4f60\u7684<\/a> Twitch \u7528\u6237\u540d\u8f6c\u6362\u4e3a ID\uff09<\/p>\n<h2>\u4ee4\u724c\u5237\u65b0\uff08\u53ef\u9009\uff09<\/h2>\n<p>\u6765\u81ea <a href=\"https:\/\/twitchtokengenerator.com\/\">Twitch Token Generator<\/a> \u7684\u4ee4\u724c\u65e0\u6cd5\u81ea\u52a8\u5237\u65b0 &#8211; \u8fc7\u671f\u65f6\u9700\u8981\u91cd\u65b0\u751f\u6210\u3002<\/p>\n<p>\u8981\u5b9e\u73b0\u81ea\u52a8\u4ee4\u724c\u5237\u65b0\uff0c\u8bf7\u5728 <a href=\"https:\/\/dev.twitch.tv\/console\">Twitch Developer Console<\/a> \u521b\u5efa\u4f60\u81ea\u5df1\u7684 Twitch \u5e94\u7528\u5e76\u6dfb\u52a0\u5230\u914d\u7f6e\u4e2d\uff1a<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    twitch: {<br \/>\n      clientSecret: &#8220;your_client_secret&#8221;,<br \/>\n      refreshToken: &#8220;your_refresh_token&#8221;,<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n\u673a\u5668\u4eba\u4f1a\u5728\u4ee4\u724c\u8fc7\u671f\u524d\u81ea\u52a8\u5237\u65b0\uff0c\u5e76\u8bb0\u5f55\u5237\u65b0\u4e8b\u4ef6\u3002\n\n## \u591a\u8d26\u6237\u652f\u6301\n\n\u4f7f\u7528 `channels.twitch.accounts` \u914d\u7f6e\u6bcf\u4e2a\u8d26\u6237\u7684\u4ee4\u724c\u3002\u53c2\u9605 [`gateway\/configuration`](\/gateway\/configuration) \u4e86\u89e3\u5171\u4eab\u6a21\u5f0f\u3002\n\n\u793a\u4f8b\uff08\u4e00\u4e2a\u673a\u5668\u4eba\u8d26\u6237\u5728\u4e24\u4e2a\u9891\u9053\u4e2d\uff09\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    twitch: {\n      accounts: {\n        channel1: {\n          username: &quot;openclaw&quot;,\n          accessToken: &quot;oauth:abc123...&quot;,\n          clientId: &quot;xyz789...&quot;,\n          channel: &quot;vevisk&quot;,\n        },\n        channel2: {\n          username: &quot;openclaw&quot;,\n          accessToken: &quot;oauth:def456...&quot;,\n          clientId: &quot;uvw012...&quot;,\n          channel: &quot;secondchannel&quot;,\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<p><strong>\u6ce8\u610f\uff1a<\/strong> \u6bcf\u4e2a\u8d26\u6237\u9700\u8981\u81ea\u5df1\u7684\u4ee4\u724c\uff08\u6bcf\u4e2a\u9891\u9053\u4e00\u4e2a\u4ee4\u724c\uff09\u3002<\/p>\n<h2>\u8bbf\u95ee\u63a7\u5236<\/h2>\n<h3>\u57fa\u4e8e\u89d2\u8272\u7684\u9650\u5236<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    twitch: {<br \/>\n      accounts: {<br \/>\n        default: {<br \/>\n          allowedRoles: [&#8220;moderator&#8221;, &#8220;vip&#8221;],<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### \u6309\u7528\u6237 ID \u5141\u8bb8\u5217\u8868\uff08\u6700\u5b89\u5168\uff09\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    twitch: {\n      accounts: {\n        default: {\n          allowFrom: [&quot;123456789&quot;, &quot;987654321&quot;],\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\uff08\u66ff\u4ee3\u65b9\u6848\uff09<\/h3>\n<p><code>allowFrom<\/code> \u662f\u786c\u6027\u5141\u8bb8\u5217\u8868\u3002\u8bbe\u7f6e\u540e\uff0c\u53ea\u5141\u8bb8\u8fd9\u4e9b\u7528\u6237 ID\u3002<br \/>\n\u5982\u679c\u4f60\u60f3\u8981\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\uff0c\u8bf7\u4e0d\u8bbe\u7f6e <code>allowFrom<\/code>\uff0c\u6539\u4e3a\u914d\u7f6e <code>allowedRoles<\/code>\uff1a<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    twitch: {<br \/>\n      accounts: {<br \/>\n        default: {<br \/>\n          allowedRoles: [&#8220;moderator&#8221;],<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### \u7981\u7528 @\u63d0\u53ca\u8981\u6c42\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c`requireMention` \u4e3a `true`\u3002\u8981\u7981\u7528\u5e76\u54cd\u5e94\u6240\u6709\u6d88\u606f\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    twitch: {\n      accounts: {\n        default: {\n          requireMention: false,\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<p>\u9996\u5148\uff0c\u8fd0\u884c\u8bca\u65ad\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw doctor<br \/>\nopenclaw \u6e20\u9053s status &#8211;probe<\/p>\n<pre><code>\n### \u673a\u5668\u4eba\u4e0d\u54cd\u5e94\u6d88\u606f\n\n**\u68c0\u67e5\u8bbf\u95ee\u63a7\u5236\uff1a** \u786e\u4fdd\u4f60\u7684\u7528\u6237 ID \u5728 `allowFrom` \u4e2d\uff0c\u6216\u4e34\u65f6\u79fb\u9664 `allowFrom` \u5e76\u8bbe\u7f6e `allowedRoles: [&quot;all&quot;]` \u6765\u6d4b\u8bd5\u3002\n\n**\u68c0\u67e5\u673a\u5668\u4eba\u662f\u5426\u5728\u9891\u9053\u4e2d\uff1a** \u673a\u5668\u4eba\u5fc5\u987b\u52a0\u5165 `channel` \u4e2d\u6307\u5b9a\u7684\u9891\u9053\u3002\n\n### \u4ee4\u724c\u95ee\u9898\n\n**&quot;Failed to connect&quot;\u6216\u8eab\u4efd\u9a8c\u8bc1\u9519\u8bef\uff1a**\n\n* \u9a8c\u8bc1 `accessToken` \u662f OAuth \u8bbf\u95ee\u4ee4\u724c\u503c\uff08\u901a\u5e38\u4ee5 `oauth:` \u524d\u7f00\u5f00\u5934\uff09\n* \u68c0\u67e5\u4ee4\u724c\u5177\u6709 `chat:read` \u548c `chat:write` \u6743\u9650\u8303\u56f4\n* \u5982\u679c\u4f7f\u7528\u4ee4\u724c\u5237\u65b0\uff0c\u9a8c\u8bc1 `clientSecret` \u548c `refreshToken` \u5df2\u8bbe\u7f6e\n\n### \u4ee4\u724c\u5237\u65b0\u4e0d\u5de5\u4f5c\n\n**\u68c0\u67e5\u65e5\u5fd7\u4e2d\u7684\u5237\u65b0\u4e8b\u4ef6\uff1a**\n\n<\/code><\/pre>\n<p>Using env token source for mybot<br \/>\nAccess token refreshed for user 123456 (expires in 14400s)<\/p>\n<pre><code>\n\u5982\u679c\u4f60\u770b\u5230&quot;token refresh disabled (no refresh token)&quot;\uff1a\n\n* \u786e\u4fdd\u63d0\u4f9b\u4e86 `clientSecret`\n* \u786e\u4fdd\u63d0\u4f9b\u4e86 `refreshToken`\n\n## \u914d\u7f6e\n\n**\u8d26\u6237\u914d\u7f6e\uff1a**\n\n* `username` - \u673a\u5668\u4eba\u7528\u6237\u540d\n* `accessToken` - \u5177\u6709 `chat:read` \u548c `chat:write` \u6743\u9650\u7684 OAuth \u8bbf\u95ee\u4ee4\u724c\n* `clientId` - Twitch Client ID\uff08\u6765\u81ea Token Generator \u6216\u4f60\u7684\u5e94\u7528\uff09\n* `channel` - \u8981\u52a0\u5165\u7684\u9891\u9053\uff08\u5fc5\u586b\uff09\n* `enabled` - \u542f\u7528\u6b64\u8d26\u6237\uff08\u9ed8\u8ba4\uff1a`true`\uff09\n* `clientSecret` - \u53ef\u9009\uff1a\u7528\u4e8e\u81ea\u52a8\u4ee4\u724c\u5237\u65b0\n* `refreshToken` - \u53ef\u9009\uff1a\u7528\u4e8e\u81ea\u52a8\u4ee4\u724c\u5237\u65b0\n* `expiresIn` - \u4ee4\u724c\u8fc7\u671f\u65f6\u95f4\uff08\u79d2\uff09\n* `obtainmentTimestamp` - \u4ee4\u724c\u83b7\u53d6\u65f6\u95f4\u6233\n* `allowFrom` - \u7528\u6237 ID \u5141\u8bb8\u5217\u8868\n* `allowedRoles` - \u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\u63a7\u5236\uff08`&quot;moderator&quot; | &quot;owner&quot; | &quot;vip&quot; | &quot;subscriber&quot; | &quot;all&quot;`\uff09\n* `requireMention` - \u9700\u8981 @\u63d0\u53ca\uff08\u9ed8\u8ba4\uff1a`true`\uff09\n\n**\u63d0\u4f9b\u5546\u9009\u9879\uff1a**\n\n* `channels.twitch.enabled` - \u542f\u7528\/\u7981\u7528\u6e20\u9053\u542f\u52a8\n* `channels.twitch.username` - \u673a\u5668\u4eba\u7528\u6237\u540d\uff08\u7b80\u5316\u7684\u5355\u8d26\u6237\u914d\u7f6e\uff09\n* `channels.twitch.accessToken` - OAuth \u8bbf\u95ee\u4ee4\u724c\uff08\u7b80\u5316\u7684\u5355\u8d26\u6237\u914d\u7f6e\uff09\n* `channels.twitch.clientId` - Twitch Client ID\uff08\u7b80\u5316\u7684\u5355\u8d26\u6237\u914d\u7f6e\uff09\n* `channels.twitch.channel` - \u8981\u52a0\u5165\u7684\u9891\u9053\uff08\u7b80\u5316\u7684\u5355\u8d26\u6237\u914d\u7f6e\uff09\n* `channels.twitch.accounts.&lt;accountName&gt;` - \u591a\u8d26\u6237\u914d\u7f6e\uff08\u4ee5\u4e0a\u6240\u6709\u8d26\u6237\u5b57\u6bb5\uff09\n\n\u5b8c\u6574\u793a\u4f8b\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    twitch: {\n      enabled: true,\n      username: &quot;openclaw&quot;,\n      accessToken: &quot;oauth:abc123...&quot;,\n      clientId: &quot;xyz789...&quot;,\n      channel: &quot;vevisk&quot;,\n      clientSecret: &quot;secret123...&quot;,\n      refreshToken: &quot;refresh456...&quot;,\n      allowFrom: [&quot;123456789&quot;],\n      allowedRoles: [&quot;moderator&quot;, &quot;vip&quot;],\n      accounts: {\n        default: {\n          username: &quot;mybot&quot;,\n          accessToken: &quot;oauth:abc123...&quot;,\n          clientId: &quot;xyz789...&quot;,\n          channel: &quot;your_channel&quot;,\n          enabled: true,\n          clientSecret: &quot;secret123...&quot;,\n          refreshToken: &quot;refresh456...&quot;,\n          expiresIn: 14400,\n          obtainmentTimestamp: 1706092800000,\n          allowFrom: [&quot;123456789&quot;, &quot;987654321&quot;],\n          allowedRoles: [&quot;moderator&quot;],\n        },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u5de5\u5177\u64cd\u4f5c<\/h2>\n<p>\u667a\u80fd\u4f53\u53ef\u4ee5\u8c03\u7528 <code>twitch<\/code> \u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li><code>send<\/code> &#8211; \u5411\u9891\u9053\u53d1\u9001\u6d88\u606f<\/li>\n<\/ul>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p><code>json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  action: \"twitch\",<br \/>\n  params: {<br \/>\n    message: \"Hello Twitch!\",<br \/>\n    to: \"#mychannel\",<br \/>\n  },<br \/>\n}<\/code><\/p>\n<h2>\u5b89\u5168\u4e0e\u8fd0\u7ef4<\/h2>\n<ul>\n<li><strong>\u5c06\u4ee4\u724c\u89c6\u4e3a\u5bc6\u7801<\/strong> &#8211; \u6c38\u8fdc\u4e0d\u8981\u5c06\u4ee4\u724c\u63d0\u4ea4\u5230 git<\/li>\n<li><strong>\u4f7f\u7528\u81ea\u52a8\u4ee4\u724c\u5237\u65b0<\/strong> \u7528\u4e8e\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u673a\u5668\u4eba<\/li>\n<li><strong>\u4f7f\u7528\u7528\u6237 ID \u5141\u8bb8\u5217\u8868<\/strong> \u800c\u4e0d\u662f\u7528\u6237\u540d\u8fdb\u884c\u8bbf\u95ee\u63a7\u5236<\/li>\n<li><strong>\u76d1\u63a7\u65e5\u5fd7<\/strong> \u67e5\u770b\u4ee4\u724c\u5237\u65b0\u4e8b\u4ef6\u548c\u8fde\u63a5\u72b6\u6001<\/li>\n<li><strong>\u6700\u5c0f\u5316\u4ee4\u724c\u6743\u9650\u8303\u56f4<\/strong> &#8211; \u53ea\u8bf7\u6c42 <code>chat:read<\/code> \u548c <code>chat:write<\/code><\/li>\n<li><strong>\u5982\u679c\u5361\u4f4f<\/strong>\uff1a\u5728\u786e\u8ba4\u6ca1\u6709\u5176\u4ed6\u8fdb\u7a0b\u62e5\u6709\u4f1a\u8bdd\u540e\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173<\/li>\n<\/ul>\n<h2>\u9650\u5236<\/h2>\n<ul>\n<li>\u6bcf\u6761\u6d88\u606f <strong>500 \u4e2a\u5b57\u7b26<\/strong>\uff08\u5728\u5355\u8bcd\u8fb9\u754c\u81ea\u52a8\u5206\u5757\uff09<\/li>\n<li>\u5206\u5757\u524d\u4f1a\u53bb\u9664 Markdown<\/li>\n<li>\u65e0\u901f\u7387\u9650\u5236\uff08\u4f7f\u7528 Twitch \u5185\u7f6e\u7684\u901f\u7387\u9650\u5236\uff09<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Twitch Twitch\uff08\u63d2\u4ef6\uff09 \u901a\u8fc7 IRC \u8fde\u63a5\u652f\u6301 Twitch \u804a\u5929\u3002OpenClaw \u4ee5 Twit [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":858,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/40\/revisions\/858"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}