Skip to content

aikunzhe/TeleShellBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleShellBot

A simple Telegram Bot to run shell commands remotely, so that you can maintain your server from mobile phones! demo tdl

docker版本

  1. 下载本项目
  2. 修改config.js
  3. docker build -t tgbot .
  4. 启动容器:
    • 三个代理地址可以不填写,只要保证自己的网络环境畅通
docker run -d \
  --restart=always \
  --privileged \
  --network=host \
  --name tgbot \
  -e http_proxy=0.0.0.0:2017 \
  -e https_proxy=0.0.0.0:2017 \
  -e TDL_PROXY=0.0.0.0:2017 \
  -v /宿主机/.tdl:/root/.tdl \
  -v /宿主机/downloads:/downloads \
  tgbot

普通版

Install

Download or clone this repo, then

npm install

Config

module.exports = {
    config:function(){
        return (
            {
                adminUsers:[USER_ID], //admin users' telegram id, should be numbers
                botToken: 'YOUR_BOT_TOEKN', // bot token

            }
        );
    }
};

Run

npm run start

or

node index.js

That is it!

About

电报机器人 tele bot 远程执行服nas群晖的命令,下载tg视频资源

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published