Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marknote/TeleShellBot
A simple Telegram Bot to run shell commands remotely
https://github.com/marknote/TeleShellBot
nodejs remote-control telegram telegram-bot
Last synced: 2 months ago
JSON representation
A simple Telegram Bot to run shell commands remotely
- Host: GitHub
- URL: https://github.com/marknote/TeleShellBot
- Owner: marknote
- License: mit
- Created: 2017-09-27T21:52:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-12T02:40:30.000Z (over 2 years ago)
- Last Synced: 2024-08-05T17:28:55.920Z (6 months ago)
- Topics: nodejs, remote-control, telegram, telegram-bot
- Language: JavaScript
- Size: 464 KB
- Stars: 85
- Watchers: 5
- Forks: 35
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - marknote/TeleShellBot - A simple Telegram Bot to run shell commands remotely (JavaScript)
README
# TeleShellBot
A simple Telegram Bot to run shell commands remotely, so that you can maintain your server from mobile phones!
![demo](https://cdn.jsdelivr.net/gh/marknote/TeleShellBot/screens/demo.gif)## Install
Download or clone this repo, then
```
npm install
```
## Config
- Follow [Telegram instructions](https://telegram.org/blog/bot-revolution) to create a bot, and you will get bot token.
- [Find you user ID](https://medium.com/@tabul8tor/how-to-find-your-telegram-user-id-6878d54acafa)
- Then put your telegram user ID and bot token in `config.js`:
```javascript
module.exports = {
config:function(){
return (
{
adminUsers:[ADMIN_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!