openilink-app-echo
March 23, 2026 ยท View on GitHub
A minimal test App for OpenILink Hub. Echoes messages and commands back.
Commands
| Command | Description |
|---|---|
/echo <text> | Immediately echo back the text |
/echo-delay <text> | Reply after 5 seconds via Bot API |
/ping | Reply with "pong!" |
Setup
-
Create an App on OpenILink Hub:
- Name: Echo
- Slug: echo
- Commands:
/echo,/echo-delay,/ping - Events:
message.text - Scopes:
messages.send
-
Install the App to a Bot, copy
app_tokenandsigning_secret -
Run:
export HUB_URL=https://hub.example.com
export HUB_APP_TOKEN=app_xxx
export HUB_SIGNING_SECRET=xxx
go run .
-
Set the installation's request_url to
http://localhost:8081/hub/webhook -
Verify URL, then test by sending
/echo helloin WeChat.