简介
TeleShellBot
是我脑洞大开的时候写的一个简单的telegram
机器人,可以帮你远程执行shell
命令,从而让你可以在手机上操作你的服务器。
截图
教程
Github地址:https://github.com/marknote/TeleShellBot
1、安装
git clone https://github.com/marknote/TeleShellBot.git
cd TeleShellBot
npm install
git
和npm
安装请参考:Debian/Ubuntu/CentOS安装最新版的Node.js和NPM教程,Debian/Ubuntu/CentOS安装Git教程。
2、配置
根据Telegram instructions去创建一个机器人的UserID
,然后将UserID
和BOT token
放到config.js
里面。
module.exports = {
config:function(){
return (
{
adminUsers:[ADMIN_ID], //admin users' telegram id, should be numbers
botToken: 'YOUR_BOT_TOEKN', // bot token
}
);
}
};
3、运行
npm start
or
node index.js
原文地址:https://www.v2ex.com/t/394208
未经允许不得转载:嘟嘟 » TeleShellBot:通过Telegram机器人远程执行shell命令
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?