tg机器人管理vps(R-Botstar)安装教程

教程类 · 2022-04-09

1、客户端服务器安装:
wget -O gz_client_bot.tar.gz https://github.com/semicons/java_oci_manage/releases/latest/download/gz_client_bot.tar.gz && tar -zxvf gz_client_bot.tar.gz --exclude=client_config && tar -zxvf gz_client_bot.tar.gz --skip-old-files client_config && chmod +x sh_client_bot.sh && bash sh_client_bot.sh

2、编辑client_config文件:
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密钥文件路径

oci=end

username=xxxxxxxxxxxxx
password=xxxxxxxxxxxxx

3、如何运行?

请先在配置文件内输入对应的参数,然后运行下方需要的指令(需要开启默认9527端口)
bash sh_client_bot.sh (启动或重启)
tail -f log_r_client.log (实时查看日志,ctrl + c退出日志)
ps -ef | grep r_client.jar | grep -v grep | awk '{print $2}' | xargs kill -9 (终止进程)
脚本支持传参 bash sh_client_bot.sh 9999 更换默认9527端口到9999端口 同时需填写local_address
使用查看日志命令查看日志 显示 服务已启动成功... 代表客户端已成功启动 可以使用bot进行你需要的操作了

  1. 1 2023-10-20

    555

  2. 1 2023-10-20

    1

  3. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

    2. 1 2023-10-20
      @1

      1

  4. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

    2. 1 2023-10-20
      @1

      1

  5. 1 2023-10-19

    555

    1. 1 2023-10-20
      @1

      1

    2. 1 2023-10-20
      @1

      1

Theme Jasmine by Kent Liao