Search: #vmshell

  1. #脚本 #vmshell 查询中转剩余流量复制 curl 粘贴 搞好 tg 推送参数 cron 一把梭#!/usr/bin/env bash# > 打开产品详情时 有个请求 复制 curl 替换就行text=curl '

    #脚本 #vmshell 查询中转剩余流量

    复制 curl 粘贴 搞好 tg 推送参数 cron 一把梭

    #!/usr/bin/env bash

    # > 打开产品详情时 有个请求 复制 curl 替换就行
    text=curl 'https://vmshell.com/clientarea.php?action=productdetails&id=&ajax=true&act=list_rule' \
    --compressed


    echo $text

    # > 记得装个 yq 解析 json

    all=echo $text| yq ".traffic_all"
    used=echo $text| yq ".traffic_used"

    text="[vmshell] $used GB / $all GB"$'\n\n'"https://vmshell.com/clientarea.php"

    echo text

    # > tg bot api key
    api_key=""
    # > tg 目标对话 id
    chat_id=""
    curl -F disable_notification=true -F chat_id=$chat_id -F "text=$text" https://api.telegram.org/bot$api_key/sendMessage

    💬 查看最新原文
    📢 折腾啥 频道
    👥 折腾啥 群组

  2. #脚本 #vmshell 查询中转剩余流量复制 curl 粘贴 搞好 tg 推送参数 cron 一把梭#!/usr/bin/env bash# > 打开产品详情时 有个请求 复制 curl 替换就行text=curl '

    #脚本 #vmshell 查询中转剩余流量

    复制 curl 粘贴 搞好 tg 推送参数 cron 一把梭

    #!/usr/bin/env bash

    # > 打开产品详情时 有个请求 复制 curl 替换就行
    text=curl 'https://vmshell.com/clientarea.php?action=productdetails&id=&ajax=true&act=list_rule' \
    --compressed


    echo $text

    # > 记得装个 yq 解析 json

    all=echo $text| yq ".traffic_all"
    used=echo $text| yq ".traffic_used"

    text="[vmshell] $used GB / $all GB"$'\n\n'"https://vmshell.com/clientarea.php"

    echo text

    # > tg bot api key
    api_key=""
    # > tg 目标对话 id
    chat_id=""
    curl -F disable_notification=true -F chat_id=$chat_id -F "text=$text" https://api.telegram.org/bot$api_key/sendMessage

    💬 查看最新原文
    📢 折腾啥 频道
    👥 折腾啥 群组