Files
Memoh/assets/cli_channel.md.T-qsPRZ9.js
T
2026-02-15 13:21:05 +00:00

2 lines
6.7 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as a,o as e,c as i,ag as s}from"./chunks/framework.DEqXEGcv.js";const k=JSON.parse('{"title":"Channel Commands","description":"","frontmatter":{},"headers":[],"relativePath":"cli/channel.md","filePath":"cli/channel.md","lastUpdated":1771161622000}'),n={name:"cli/channel.md"};function h(l,t,d,o,p,c){return e(),i("div",null,[...t[0]||(t[0]=[s('<h1 id="channel-commands" tabindex="-1">Channel Commands <a class="header-anchor" href="#channel-commands" aria-label="Permalink to &quot;Channel Commands&quot;"></a></h1><p>Manage channels and bot/user channel configuration.</p><h2 id="channel-list" tabindex="-1">channel list <a class="header-anchor" href="#channel-list" aria-label="Permalink to &quot;channel list&quot;"></a></h2><p>List available channel types (e.g. telegram, feishu, local).</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> list</span></span></code></pre></div><h2 id="channel-info" tabindex="-1">channel info <a class="header-anchor" href="#channel-info" aria-label="Permalink to &quot;channel info&quot;"></a></h2><p>Show channel metadata and schema for a channel type.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> info</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [type]</span></span></code></pre></div><p>If <code>type</code> is omitted, prompts to select from available channels.</p><h2 id="channel-config-get" tabindex="-1">channel config get <a class="header-anchor" href="#channel-config-get" aria-label="Permalink to &quot;channel config get&quot;"></a></h2><p>Get a bot&#39;s channel configuration.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> config</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> get</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [bot_id] [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--type &lt;type&gt;</code></td><td>Channel type</td></tr></tbody></table><h2 id="channel-config-set" tabindex="-1">channel config set <a class="header-anchor" href="#channel-config-set" aria-label="Permalink to &quot;channel config set&quot;"></a></h2><p>Set a bot&#39;s channel configuration. Currently supports Feishu.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> config</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> set</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [bot_id] [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--type &lt;type&gt;</code></td><td>Channel type (e.g. <code>feishu</code>)</td></tr><tr><td><code>--app_id &lt;id&gt;</code></td><td>Feishu App ID</td></tr><tr><td><code>--app_secret &lt;secret&gt;</code></td><td>Feishu App Secret</td></tr><tr><td><code>--encrypt_key &lt;key&gt;</code></td><td>Encrypt key (optional)</td></tr><tr><td><code>--verification_token &lt;token&gt;</code></td><td>Verification token (optional)</td></tr></tbody></table><h2 id="channel-bind-get" tabindex="-1">channel bind get <a class="header-anchor" href="#channel-bind-get" aria-label="Permalink to &quot;channel bind get&quot;"></a></h2><p>Get the current user&#39;s channel binding for a platform.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bind</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> get</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--type &lt;type&gt;</code></td><td>Channel type</td></tr></tbody></table><h2 id="channel-bind-set" tabindex="-1">channel bind set <a class="header-anchor" href="#channel-bind-set" aria-label="Permalink to &quot;channel bind set&quot;"></a></h2><p>Set the current user&#39;s channel binding. Currently supports Feishu (open_id or user_id).</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> channel</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bind</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> set</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--type &lt;type&gt;</code></td><td>Channel type (e.g. <code>feishu</code>)</td></tr><tr><td><code>--open_id &lt;id&gt;</code></td><td>Feishu Open ID</td></tr><tr><td><code>--user_id &lt;id&gt;</code></td><td>Feishu User ID</td></tr></tbody></table>',25)])])}const g=a(n,[["render",h]]);export{k as __pageData,g as default};