A template for a minimal telegram bot that reports system information for the computer that the bot running on.
Use this bot when you need to check the status of a box behind a firewall.
- Node.js version 6 or later (requires ECMAscript 6), tested with v6.2.1
- Any box that can run Node.js, works well on https://getchip.com/pages/chip
- In Telegram connect to @BotFather and create a new bot. Give it a name that you can recognize but other people cannot guess. Make a copy of the API key.
- Clone and cd into this repository
- Copy config-TEMPLATE.json into config.json and put there API key of your bot and your Telegram user name.
- Do
npm install
- Start the bot
node bot-launcher.js
, find the bot by the name you've gave it in the Telegram client search box - Issue
/start
command (you have to reissue it every time bot is restarted) - Use bot menu to get information about your system
Currently system information is collected using https://github.com/sebhildebrandt/systeminformation
- better formatting for the results
- scheduled reports
- alarms like overheating or disk full