kamikazechaser / ServerBot

:bulb: A Telegram Bot For Checking Server Statistics And Information.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ServerBot

A đź’ˇTelegram Bot For Checking Server Statistics And Information.

https://github.com/kamikazechaser/LiveCoinBot/blob/master/LICENSE.md https://telegram.me/kamikazechaser Dependency Status devDependencies Status Code Climate

Installation

  • 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

Commands

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.

License

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/>.

About

:bulb: A Telegram Bot For Checking Server Statistics And Information.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%