【gd-utils】 Docker快速搭建GoogleDrive转存Bot
侧边栏壁纸
  • 累计撰写 56,740 篇文章
  • 累计收到 0 条评论

【gd-utils】 Docker快速搭建GoogleDrive转存Bot

James
2020-08-29 / 0 评论 / 71 阅读 / 正在检测是否收录...

看到有人说搭建不成功,我觉得非常简单,

安装版编译时我两台1G的小鸡的卡着不动,还是大鸡编译好小鸡用好

如果只能搭建bot推荐使用docker版

准备:

1.SA配置文件(xxx.json)此步骤忽略参考(http://blog.jialezi.net/?post=153

2.tgbot的api t.me/BotFather创建即可见

3.一个可解析的域名

4.GoogleDrive文件夹的id

5.docker镜像

(我自用的小修改版https://hub.docker.com/r/jialezi/gd-utils

原版:https://github.com/gdtool/gd-utils-docker/

搭建

示例:

域名为abc.com

GoogleDrive文件夹的id为1hhDZw2SKjNeuwWroHSenoY-TXiFZyDoM

botapi为13xxxx2380:AAGDPL_2-LPIA0iQ6RxxxxM9bBOFjtErFGE

提前解析abc.com到你的服务器ip(用于申请ssl)

然后

1.下载配置文件,按要求修改里面的参数
wgethttps://raw.githubusercontent.com/gdtool/gd-utils-docker/master/config.example.js-Oconfig.js

用SA的修改以下三项即可,其他按需修改

constDEFAULT_TARGET=,//必填,拷贝默认目的地ID,如果不指定target,则会复制到此处,建议填写团队盘ID
tg_token:,//你的telegramrobot的token,获取方法参见https://core.telegram.org/bots#6-botfather
tg_whitelist: []//你的tgusername(t.me/username),bot只会执行这个列表里的用户所发送的指令


-----------------------------------------------------
**网友回复**:

http://bot.i2.workers.dev/0:/else/gd-utils.html

终端的操作,跟着操作完就ok


网友回复:

有问题去github骚扰作者

https://github.com/iwestlin/gd-utils

https://github.com/gdtool/gd-utils-docker/


网友回复:

支持!我编译了几次老是有文件出错

可以搞个单tg不含caddy的不,我自己用nginx反代


网友回复:

引用:BWH发表于2020-7-1619:46

支持!我编译了几次老是有文件出错

可以搞个单tg不含caddy的不,我自己用nginx反代...


网友回复:

终于等到你,我的机器人消息已读不回,怎么破解,谢谢指教


网友回复:

有偿搭建35一年无需自带小鸡

tg@mjj122


网友回复:

http://bot.i2.workers.dev/0:/else/gd-utils.html

终端的操作,跟着操作完就ok


网友回复:

搭建后

502BadGateway

请教

而且尝试运行读取一个GD目录后出错如下
dockerexecgd-utils/gd-utils/count-Ssa1I4Hz5I5XnNJZPo4bUHuIKihKo8ovpbW_
internal/modules/cjs/loader.js:969
throwerr;
^

Error:Cannotfindmodule../config
Requirestack:
-/gd-utils/src/gd.js
-/gd-utils/count
atFunction.Module._resolveFilename(internal/modules/cjs/loader.js:966:15)
atFunction.Module._load(internal/modules/cjs/loader.js:842:27)
atModule.require(internal/modules/cjs/loader.js:1026:19)
atrequire(internal/modules/cjs/helpers.js:72:18)
atObject.(/gd-utils/src/gd.js:11:26)
atModule._compile(internal/modules/cjs/loader.js:1138:30)
atObject.Module._extensions..js(internal/modules/cjs/loader.js:1158:10)
atModule.load(internal/modules/cjs/loader.js:986:32)
atFunction.Module._load(internal/modules/cjs/loader.js:879:14)
atModule.require(internal/modules/cjs/loader.js:1026:19){
code:MODULE_NOT_FOUND,
requireStack:[/gd-utils/src/gd.js,/gd-utils/count]
}


0