### Client Bot Management Commands (Start, Stop, Log, Uninstall) Source: https://github.com/semicons/java_oci_manage/blob/main/md/install.md These commands facilitate the basic management of the client bot after configuration. Users can start or restart the bot, monitor its activity by viewing logs, gracefully terminate the running process, or completely uninstall all associated files and configurations. ```bash 请先在配置文件内输入对应的参数,然后运行下方需要的指令 启动或重启 bash sh_client_bot.sh 查看日志(ctrl + c退出日志) tail -f log_r_client.log 终止程序 pgrep -f r_client | xargs -r kill -9 卸载程序 rm -rf gz_client_bot.tar.gz client_config r_client sh_client_bot.sh log_r_client.log debug-.log ``` -------------------------------- ### Linux One-Click Install/Update Script for Client Bot Source: https://github.com/semicons/java_oci_manage/blob/main/md/install.md This script provides a convenient way to download and execute the client bot installation and update script on Linux. It automatically fetches the latest version, makes it executable, and runs it. Users may want to manually create a directory (e.g., 'mkdir rbot && cd rbot') before running for better organization. ```bash wget -O sh_client_bot.sh https://github.com/semicons/java_oci_manage/releases/latest/download/sh_client_bot.sh && chmod +x sh_client_bot.sh && bash sh_client_bot.sh ``` -------------------------------- ### Client Configuration File Example (OCI, Azure, Cloudflare) Source: https://github.com/semicons/java_oci_manage/blob/main/md/install.md This snippet illustrates the structure and parameters of the 'client_config' file. It supports multiple OCI and Azure API profiles, user credentials, Cloudflare API keys, and optional local address settings. Setting 'model=local' enables a mode without a public IP, requiring only internet connectivity. ```text #在oci=begin和oci=end之间放入你的API配置信息 支持多个配置文件 机器人操作profile管理里可更换操作账户 oci=begin [DEFAULT] user=ocid1.user.oc1..aaaaaaaaxxxxgwlg3xuzwgsaazxtzbozqq fingerprint=b8:33:6f:xxxx:45:43:33 tenancy=ocid1.tenancy.oc1..aaaaaaaaxxx7x7h4ya region=ap-singapore-1 key_file=写你的API密钥文件路径 如:/root/rbot/xxx.pem [tokyo] user=ocid1.user.oc1..aaaaaaaaxxxxgwlg3xuzwgsaazxtzbozqq fingerprint=b8:33:6f:xxxx:45:43:33 tenancy=ocid1.tenancy.oc1..aaaaaaaaxxx7x7h4ya region=ap-singapore-1 key_file=写你的API密钥文件路径 如:/root/rbot/xxx.pem oci=end #用户信息 从 https://t.me/radiance_helper_bot 配置(bot可使用/raninfo命令随机生成) #必传 username= #必传 password= #cloudflare 功能参数 非必传 #非必传 cloudflare邮箱 cf_email= #非必传 cloudflare key 在我的个人资料->API令牌处->API密钥->Global API Key 获取 cf_account_key= #非必填 本机ip和端口号 (进阶玩家选项 可填写域名) 不写将自动获取本机ip 并使用默认端口号9527 (小白用户建议不填) 如填写 格式为:https://xxx.xx:9527 local_address= #非必填 url名称(默认为address 可在bot上修改) local_url_name= #非必填 启动模式 填写local为启动本地无公网IP模式(只要能联网即可) 不填或填其他 则启动端口模式 model= #在azure=begin和azure=end之间放入你的azure的API配置信息 支持多个配置文件 机器人切换profile可更换操作配置 上传配置支持使用原格式({"appId":"xxx","password":"xxx"...})上传 azure=begin [az001] appId=551xxxx7-xxxx-xxxx-xxxx-b9xxxx60cc65 password=T618Q~.LIy_xxxxx~jm~xxxxxx tenant=xxxx3713-xxxx-4cb5-xxxx-3001060xxxxx azure=end ``` -------------------------------- ### Retrieve Azure API Parameters and Upload Configuration via Azure Cloud Shell Source: https://github.com/semicons/java_oci_manage/blob/main/md/azure.md This snippet provides instructions for obtaining necessary API parameters from Azure by creating a service principal with contributor role using the `az` CLI command in PowerShell. It then demonstrates how to upload a configuration using a `/oci` command, providing a JSON object containing `appId`, `displayName`, `password`, and `tenant`. ```PowerShell az ad sp create-for-rbac --role contributor --scopes /subscriptions/$(az account list --query [].id -o tsv) ``` ```JSON { "appId": "xxxxx-xxx-xx-xxx-xxxx", "displayName": "azure-cli-11111-12-111-11-222-22", "password": "xxxxx~oxjTxxxxxxxxb_I", "tenant": "xxxx-xxxx-xxxx-xxxx-xxxxxxxx" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.