Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Free Telegram /setup command for OpenClaw Codex auth: OAuth via pasted redirect/code, token fallback, status, and safe config patching.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/install_plugin.sh
1#!/usr/bin/env bash2set -euo pipefail34MODE="${1:-copy}"5SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"6SKILL_DIR="$(cd -- "$SCRIPT_DIR/.." && pwd)"7PLUGIN_DIR="$SKILL_DIR/assets/tg-auth-setup-plugin"89if [[ ! -f "$PLUGIN_DIR/openclaw.plugin.json" ]]; then10echo "Plugin manifest not found: $PLUGIN_DIR/openclaw.plugin.json" >&211exit 112fi1314case "$MODE" in15copy)16openclaw plugins install "$PLUGIN_DIR"17;;18link)19openclaw plugins install -l "$PLUGIN_DIR"20;;21*)22echo "Usage: $0 [copy|link]" >&223exit 124;;25esac2627echo28echo "Plugin installed."29echo "Next: openclaw plugins info tg-auth-setup"30echo "Then restart Gateway: openclaw gateway restart"31