Discord Reader

himself65/finance-skills/plugins/social-readers/skills/discord-reader

作者 himself6501fc7b4b34ae無授權條款3.3K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫4 天前更新

Read Discord for financial research through opencli connected to the Discord desktop app: servers, channels, members, recent messages in the active channel, and message search. Use this skill whenever the user wants to check their Discord, list servers or channels, read or search messages in trading, crypto, or market communities, or gauge what a Discord community is saying about a ticker or coin. Read-only: it cannot send, react to, edit, or delete messages.

AI 產生的概覽

透過 opencli 以唯讀方式存取 Discord 的伺服器、頻道、成員、訊息與搜尋,用於金融研究。

功能
此技能引導代理使用 opencli 命令列工具,透過 Chrome DevTools 協定連接 Discord 桌面應用程式來讀取 Discord 資料。內容涵蓋檢查連線、列出伺服器、頻道與線上成員、讀取目前頻道的近期訊息,以及搜尋訊息,並支援 JSON、YAML、Markdown、CSV 等結構化輸出格式。它也提供安裝設定、診斷與錯誤處理說明,以及附上署名與情緒傾向的結果呈現建議。此技能明確為唯讀,不會傳送、回應、編輯或刪除訊息。
適用情境
當使用者想查看自己的 Discord、列出伺服器或頻道,或讀取與搜尋交易、加密貨幣、市場社群中的訊息時使用。它適合用來了解某個 Discord 社群對某檔股票或某種幣的看法。不適用於發布或管理 Discord 內容。
執行需求
需要 Node.js 20 或更新版本,以及透過 npm 全域安裝的 opencli 命令列工具。需要以遠端偵錯模式在 9232 埠執行 Discord 桌面應用程式,並設定 OPENCLI_CDP_ENDPOINT 環境變數指向 CDP 端點。不需要機器人帳號或權杖。此技能不附帶指令碼,僅為說明文件加一份參考檔案。

Discord Skill (Read-Only)

Reads Discord for financial research using opencli, a universal CLI tool that bridges desktop apps and web services to the terminal via Chrome DevTools Protocol (CDP).

This skill is read-only. It is designed for financial research: searching trading server discussions, monitoring crypto/market groups, tracking sentiment in financial communities, and reading messages. It does NOT support sending messages, reacting, editing, deleting, or any write operations.

Important: opencli connects to the Discord desktop app via CDP — no bot account or token extraction needed. Just have Discord Desktop running.


Step 1: Ensure opencli Is Installed and Discord Is Ready

Current environment status:

!`(command -v opencli && opencli discord-app status 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"`

If the status above shows READY, skip to Step 2. If NOT_INSTALLED, install first:

bash
# Install opencli globallynpm install -g @jackwener/opencli

If SETUP_NEEDED, guide the user through setup:

Setup

opencli requires Node.js >= 20. It connects to Discord Desktop via CDP (Chrome DevTools Protocol) — no Browser Bridge extension is needed for the Discord adapter. Two things are required:

  1. Start Discord with remote debugging enabled:
bash
# macOS/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &
# Linuxdiscord --remote-debugging-port=9232 &
  1. Set the CDP endpoint environment variable:
bash
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"

Add this to your shell profile (.zshrc / .bashrc) so it persists across sessions.

  1. Verify connectivity:
bash
opencli discord-app status

Common setup issues

SymptomFix
CDP connection refusedEnsure Discord is running with --remote-debugging-port=9232
OPENCLI_CDP_ENDPOINT not setRun export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
status shows disconnectedRestart Discord with the CDP flag and retry
Discord not on expected portCheck that no other app is using port 9232, or use a different port

Tip: create a shell alias

bash
alias discord-cdp='/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &'

Step 2: Identify What the User Needs

Match the user's request to one of the read commands below, then use the corresponding command from references/commands.md.

User RequestCommandKey Flags
Connection checkopencli discord-app status—
List serversopencli discord-app servers-f json
List channelsopencli discord-app channels-f json
List online membersopencli discord-app members-f json
Read recent messagesopencli discord-app readN (count), -f json
Search messagesopencli discord-app search "QUERY"-f json

Note: opencli operates on the currently active server and channel in Discord. To read from a different channel, the user must navigate to it in the Discord app first, or use the channels command to identify what's available.


Step 3: Execute the Command

General pattern

bash
# Use -f json or -f yaml for structured outputopencli discord-app servers -f jsonopencli discord-app channels -f json
# Read recent messages from the active channelopencli discord-app read 50 -f json
# Search for financial topics in the active channelopencli discord-app search "AAPL earnings" -f jsonopencli discord-app search "BTC pump" -f json

Key rules

  1. Check connection first — run opencli discord-app status before any other command
  2. Use -f json or -f yaml for structured output when processing data programmatically
  3. Navigate in Discord first — opencli reads from the currently active server/channel in the Discord app
  4. Start with small reads — use opencli discord-app read 20 unless the user asks for more
  5. Use search for keywords — opencli discord-app search uses Discord's built-in search (Cmd+F / Ctrl+F)
  6. Read-only — opencli also exposes discord-app send and discord-app delete; don't invoke them, and don't send messages, react, edit, delete, or manage server settings.

Output format flag (-f)

FormatFlagBest for
Table-f table (default)Human-readable terminal output
JSON-f jsonProgrammatic processing, LLM context
YAML-f yamlStructured output, readable
Markdown-f mdDocumentation, reports
CSV-f csvSpreadsheet export

Typical workflow for reading a server

bash
# 1. Verify connectionopencli discord-app status
# 2. List servers to confirm you're in the right oneopencli discord-app servers -f json
# 3. List channels in the current serveropencli discord-app channels -f json
# 4. Read recent messages (navigate to target channel in Discord first)opencli discord-app read 50 -f json
# 5. Search for topics of interestopencli discord-app search "price target" -f json

Step 4: Present the Results

Lead with what matters for the user's research question rather than a raw dump. Attribute each message (username, timestamp, content), group search results by theme, and note the bullish or bearish lean and where views are consensus or contrarian. Show server and channel listings as a table of names and types. Keep CDP endpoints and session details private.


Step 5: Diagnostics

If something isn't working, check:

  1. Is Discord running with CDP?
bash
# Check if the port is openlsof -i :9232
  1. Is the environment variable set?
bash
echo $OPENCLI_CDP_ENDPOINT
  1. Can opencli connect?
bash
opencli discord-app status

If all checks fail, restart Discord with the CDP flag:

bash
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"opencli discord-app status

Error Reference

ErrorCauseFix
CDP connection refusedDiscord not running with CDP or wrong portStart Discord with --remote-debugging-port=9232
OPENCLI_CDP_ENDPOINT not setMissing environment variableexport OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
No active channelNot viewing any channel in DiscordNavigate to a channel in the Discord app
Rate limitedToo many requestsWait a few minutes, then retry

Reference Files

  • references/commands.md — Complete read command reference with all flags and usage examples

Read the reference file when you need exact command syntax or detailed flag descriptions.

來源與署名

來源:himself65/finance-skills位於plugins/social-readers/skills/discord-reader提交01fc7b4

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 himself65/finance-skills 的技能

Yfinance Data

himself65

透過 yfinance Python 函式庫從 Yahoo Finance 取得股票與市場資料並加以呈現。

Data & Analytics3.3K4 天前更新

Stock Liquidity

himself65

Analyze how liquid a stock is using Yahoo Finance data (yfinance): bid-ask spreads, volume and dollar volume (ADTV), top-of-book and options depth, square-root market impact and slippage estimates, turnover ratio, and Amihud illiquidity, rolled into a liquidity grade. Use this skill whenever the user asks about liquidity or trading costs — how easily a position can be entered or exited, what a large order would do to the price, spread or execution-cost estimates, order book depth, volume patterns, or liquidity comparisons — especially for small caps, penny stocks, and thinly traded names.

待分類3.3K4 天前更新

Stock Correlation

himself65

以 Yahoo Finance 價格歷史分析股票連動,找出相關個股、貝他、聚類與滾動相關性。

Data & Analytics3.3K4 天前更新

Sepa Strategy

himself65

以 Mark Minervini 的 SEPA 方法分析股票:階段分析、趨勢範本、型態、進場點與部位控管。

Business & Finance3.3K4 天前更新

Saas Valuation Compression

himself65

分析未上市 SaaS 公司各輪募資的 ARR 估值倍數變化,並將變化歸因於總經、成長與敘事因素。

Business & Finance3.3K4 天前更新

Yc Reader

himself65

Look up Y Combinator companies and batches from the public yc-oss API, a static JSON dataset refreshed daily: company profiles, batch rosters (e.g. W25, S24), companies by industry or tag, top companies, who is hiring, founder-diversity lists, and overall YC stats. Use this skill whenever the user asks about YC-backed startups, a YC batch, YC companies in a sector or tag or that are hiring, the Y Combinator portfolio, or startup and venture research that draws on YC data. Read-only.

待分類3.3K4 天前更新