Hanson / vbot

微信,企微,机器人,企业微信,企微机器人,微信机器人,小红书,美团,美团爬虫,聚合聊天,RPA,协议,hook,逆向,群发,自动回复,chatgpt,API对接,稳定防封全语言通用,企业定制/SCRM/SAAS专用
MIT License
4.06k stars 711 forks source link

运行php vendor/bin/vbot run:example --session=vbot的时候直接报错 #170

Closed cong5 closed 7 years ago

cong5 commented 7 years ago

运行php vendor/bin/vbot run:example --session=vbot的时候直接报错怎么办?

⚡ root@mrcong# php vendor/bin/vbot run:example --session=vbot

dir=$(d=${0%[/\\]*}; cd "$d"; cd '../hanson/vbot/bin' && pwd)

# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
    # Cygwin paths start with /cygdrive/ which will break windows PHP,
    # so we need to translate the dir path to windows format. However
    # we could be using cygwin PHP which does not require this, so we
    # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
    if [[ $(which php) == /cygdrive/* ]]; then
        dir=$(cygpath -m "$dir");
    fi
fi

dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/vbot" "$@"
Hanson commented 7 years ago

try ./vendor/bin/vbot run:example --session=vbot

cong5 commented 7 years ago

结果一样是报上面的信息

Hanson commented 7 years ago

那建议你自己写吧,例子下个版本都要去掉了,或者看我的例子 https://github.com/hanson/my-vbot

cong5 commented 7 years ago

好的,谢谢。我看看

Hanson commented 7 years ago

新版本已删除例子,需要例子可自行去 https://github.com/HanSon/my-vbot 查看