Skip to content

Bot Commands

The MoeNet DN42 Bot (@moenetdn42bot) provides a bilingual (EN/ZH) interface for peering management.

User Commands

CommandDescription
/start, /helpShow all available commands
/login <ASN>Login with your DN42 AS number
/logoutEnd current session
/whoamiShow current login status
/cancelCancel current operation

Peering Commands

Requires login (/login first).

CommandDescription
/peerThe single entry for all peering. Your peers as an inline list → tap one for a detail card with ✏️ Modify · 🗑 Delete · 📊 Status · 🔄 Restart, plus ➕ New Peer (inline creation wizard). Every action is a button tap — no per-field commands to type.
/nodeBrowse nodes (inline list → details). Everyone can view; admins also get add/edit/delete/bootstrap/maintenance/peers

/info /modify /remove /status /restart still work as legacy aliases for muscle memory, but they've been removed from the command menu — everything is reachable from inside /peer. The detail card also shows a rejected peer's reason (⚠️ Note).

Network Tools

Available to all users without login.

CommandDescription
/ping <target>Ping from MoeNet nodes
/trace <target>Traceroute from nodes
/whois <query>DN42 WHOIS lookup
/dig <domain>DNS lookup
/route <prefix>BGP route lookup
/findnoc <asn>Find NOC contact info

Admin Commands

Requires admin privileges.

CommandDescription
/nodeNode management — add / edit / delete (cascades sessions) / bootstrap token / maintenance / view peers. Replaces the old /addnode, /delnode, /bootstrap, /nodes
/peerWith no arg, admins get a panel: 📋 all sessions · ➕ add peer (any ASN, any node) · ⏳ pending · 🔍 by ASN. /peer <asn> views a specific ASN
/addpeer <asn>Add a peer for any ASN on any node (also the panel's ➕)
/pendingList pending peer requests (✅ Approve / ❌ Reject; reject asks for an optional reason and notifies the peer via TG + email)
/sessionsAll BGP sessions (grouped, with health)
/block <ASN> · /unblock <ASN>Block / unblock an ASN
/announce · /notifyBroadcast / targeted user messages
/mainMaintenance mode (also 🔧 on the /node detail card)

Peer approval: all non-admin requests go to manual review by default. Set PEER_AUTO_APPROVE=true to enable lenient auto-approve (all-green requests skip review; hard blockers — unowned ULA/GUA IP, bogus/CN endpoint — still escalate).

Status & Metrics

CommandDescription
/statsNetwork statistics (/stats <asn> for DN42 MAP info)
/rankNode ranking by metrics
/communityPer-node BGP community / route stats

A peer's WireGuard latency (RTT probe) is on the /peer detail card — tap ⏱ Latency (this replaced the old standalone /latency command). The old /peerlist command was removed; use /peer for your peers.

Peer Creation Flow

MoeNet DN42 Network — AS4242420998