关于Shell-bot

Shell-bot是一个通过Telegram远程运行shell命令的Telegran机器人。

GitHub项目地址:https://github.com/botgram/shell-bot

部署

第一步安装node-pty依赖项:
1
sudo apt install -y make python build-essential

第二步:

1
2
git clone https://github.com/botgram/shell-bot.git && cd shell-bot
npm install

第三步:去Telegram的Botfather申请一个机器人(步骤并不难所以不作演示了)

第四步:

1
node server

把从Botfather申请到的机器人api填进去并通过telegram给机器人发条信息绑定。

第五步:再运行一次

1
node server

显示Bot ready时表示启动成功,可以愉快的通过bot来运行shell命令。

具体用法参考GitHub项目说明。

 

最后

类似的bot项目还有:https://github.com/marknote/TeleShellBot