Giter Club home page Giter Club logo

cg_shellbot's People

Contributors

cgkings avatar mildsunrise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cg_shellbot's Issues

[CentOS手动安装提醒] yum安装node-pty依赖项中build-essential,NOT MATCH 无法找到build-essential依赖包

CentOS安装,仅需要对手动教程进行一点小改动,

把Ubuntu/Debian系统包管理apt --> CentOS的yum进行安装

其中,
手动教程中-2.安装node-pty依赖项过程中

yum install -y make python build-essential

会出现一下报错
image

解决方案

  • python
    可自由选定版本,最好跟教程(pip3),选python3。(假如系统已有python环境,可忽略?个人不确定,最好操作一下)
  • build-essential

参考一下网址Can't Install build-essential on CentOS,提供两种选择

两种选择

  1. 【一步到位版】
sudo yum groupinstall 'Development Tools' 
  1. 【简洁轻量版】
yum install gcc gcc-c++ make 

安装成功后,到fclone_shell_bot/目录下,
执行npm install
安装该项目所需要的modules(被放入./node_modules/文件夹)

之后,执行 node server命令,开启机器人。
提醒:
如果遇到以下情况之类情况,
image

请重新删掉node_modules/文件夹,确定依赖包安装无误后,再重新npm install安装。

按个人经验,就应该可以启动bot成功了。
node server success

fs查询大小失败

你的选择,ls基础模式
2020/09/07 13:58:03 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 13:58:03 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
▣▣▣▣▣▣▣▣查询信息▣▣▣▣▣▣▣▣

┋ name ┋:

┋ file ┋:0

┋ folder┋:0

┋ total ┋:0

你的选择,ls列表模式
2020/09/07 14:04:14 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:04:14 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:04:14 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:04:14 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
资源名称:

|类型|文件数量|

|视频|0 |

|图片|0 |

|文本|0 |

|合计|0 |

你的选择,size基础模式
2020/09/07 14:01:23 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
▣▣▣▣▣▣▣▣查询信息▣▣▣▣▣▣▣▣

┋资源名称┋:

┋资源数量┋:

┋资源大小┋:

你的选择,size列表模式
2020/09/07 14:03:35 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:03:35 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:03:35 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
2020/09/07 14:03:35 Failed to create file system for ":{12ZGCqvwmrQ_38EJiZJHFgdvzI8nM4hap}": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
资源名称:

|类型|文件数量|文件大小 |

|视频| | |

|图片| | |

|文本| | |

|合计| | |

你的选择,极速查询模式
/root/fclone_shell_bot/script/fsize.sh: line 94: 2020/09/07: No such file or directory
(重复报错这条,只能/cancel强制取消)

全盘备份功能无法使用

机器人很强大,感谢作者。但有全盘备份有些问题,个人提出一些小小的修改建议

问题描述:

如果使用全盘备份功能,给机器人发送 要备份盘的数字后,机器人不等输入 备份盘id 就会直接执行完毕
图片名称

个人修改方法

编辑 fclone_shell_bot/script/fbcopy.sh
20行修改为

read  -p "请输入数字 [1-5]:" num 

51行改为

    exit
    ;;

59行 删除

clear

如此一来机器人可以正常转存

如何赋予多个用户使用权限

换了一个tg号,但是并不想在重新搭建一遍,于是使用脚本中的修改bot配置,将原来的id换成了现在的id,重启bot之后仍无法在新的tg号中使用,请教如何配置多用户使用权限或者替换bot的使用者,感谢作者!

读取文件夹名称出错

读取文件夹名称出错,请反馈问题给作者
/root/fclone_shell_bot/script/fqcopy_a.sh: line 22: break: only meaningful in a for', while', or until' loop /root/fclone_shell_bot/script/fqcopy_a.sh: line 45: syntax error near unexpected token else'
/root/fclone_shell_bot/script/fqcopy_a.sh: line 45: ` else'

提示这个错误怎么办啊

at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/root/fclone_shell_bot/server.js:9:15)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/root/fclone_shell_bot/server.js' ]
}
root@vultr:~/fclone_shell_bot# cd ~/fclone_shell_bot && node server
internal/modules/cjs/loader.js:968
throw err;
^

Error: Cannot find module 'botgram'
Require stack:

  • /root/fclone_shell_bot/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/root/fclone_shell_bot/server.js:9:15)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/root/fclone_shell_bot/server.js' ]
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.