Skip to content

A template for a telegram bot that reports system information for the computer that the bot running on

License

Notifications You must be signed in to change notification settings

sorokine/telegram-sysinfo-bot-template

Repository files navigation

Telegram Bot Template for Reporting System Information

Synopsis

A template for a minimal telegram bot that reports system information for the computer that the bot running on.

Use Cases

Use this bot when you need to check the status of a box behind a firewall.

Requirements

How To

  1. 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.
  2. Clone and cd into this repository
  3. Copy config-TEMPLATE.json into config.json and put there API key of your bot and your Telegram user name.
  4. Do npm install
  5. Start the bot node bot-launcher.js, find the bot by the name you've gave it in the Telegram client search box
  6. Issue /start command (you have to reissue it every time bot is restarted)
  7. Use bot menu to get information about your system

Internals

Currently system information is collected using https://github.com/sebhildebrandt/systeminformation

TODO

  • better formatting for the results
  • scheduled reports
  • alarms like overheating or disk full

About

A template for a telegram bot that reports system information for the computer that the bot running on

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published