mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
01957bf654
* feat(discord-app): add delete command to remove a message by ID Adds a new `delete` command for the discord-app CLI that deletes a message in the active channel by its snowflake ID. Uses the UI strategy to hover the message, open the "More" menu, click "Delete Message", and confirm the deletion dialog. * docs: add binance adapter doc and update discord doc with delete command
905 B
905 B
Discord
Control the Discord Desktop App from the terminal via Chrome DevTools Protocol (CDP).
Prerequisites
Launch with remote debugging port:
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232
Setup
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
Commands
| Command | Description |
|---|---|
opencli discord-app status |
Check CDP connection |
opencli discord-app send "message" |
Send a message in the active channel |
opencli discord-app read |
Read recent messages |
opencli discord-app channels |
List channels in the current server |
opencli discord-app servers |
List all joined servers |
opencli discord-app search "query" |
Search messages (Cmd+F) |
opencli discord-app members |
List online members |
opencli discord-app delete MESSAGE_ID |
Delete a message by its ID |