A 💡Telegram Bot For Checking Server Statistics And Information.
- Ensure you have NodeJS and npm installed else visit here
- Preferrable to use with tmux or screen
- If you have a windows server edit the bot.js file as commented on line 53
- Replace your token in bot.js
- Add your userId so as to use the bot (or an array of users)
$ npm install -g nodemon
$ git clone https://github.com/kamikazechaser/ServerBot.git && cd ServerBot
$ npm install
$ nodemon bot.js
As a security precaution, due to sensitivity of certain commands, e.g /bash, the bot will ignore ALL messages that are not from the SuperUser a.k.a sudo!
Command | Description |
---|---|
/start | Displays general information about the bot and list of commands. |
/bash [cmd] | Execute UNIX commands on the machine and get a reply if any (directory cannot be changed). |
/info | Gets the general information of the server. |
/disk | Displays the storage information of the server. |
/ram | Displays the memory information of the server. |
/load | Displays the CPU load of the server. |
/ping | Initiates the speed-test (takes 12 - 20 seconds). You will be notified on start and end of speed-test. |
/results | Displays the speed-test results. |
/geo | Geo-locates the server. |
ServerBot
Copyright (C) 2016 Mohammed Sohail <kamikazechaser.github.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.