New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

teleme

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teleme

Simple cli tool that sends message as telegram bot.

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

teleme

simple cli tool that sends message as telegram bot

Can be useful when you run long duration cli tasks.

Install

$ npm install --global teleme

Setup

Firstly, you need to create a telegram bot via @botfather, get the bot's token, and the chatid. The chat can be a group or 1-1 conversation.

Then, put the information into ~/.config/teleme/config.json, such as:

{
  "token": "TOKEN_OF_THE_BOT",
  "chatid": "12345678",
  "bot2_token": "TOKEN_OF_ANOTHER_BOT", # optional
  "bot2_chatid": "23456789", # optional
}

Execute teleme and you should be able to receive a message from the bot, that's it.

If you need to use it for root user, don't forget to set the config for root as well.

Usage

$ teleme --help

  Usage
    $ tlm <message>
    OR
    $ teleme <message>
    OR if you want to use the non-default bot
    $ TLMBOT=bot2 teleme <message>
    If you want to send silent message
    $ SILENT=true teleme <message>
  Examples
    $ teleme
    $ tlm
    $ teleme "My sexy message ❤️ "

The usage can be flexible, for example:

  • After you realize the command is slow, just enter tlm or teleme.
    $ some-slow-cmd
    output1
    output2
    ...
    tlm
    
  • You know the command will take a long time
    $ some-heavy-task ; teleme
    
  • Only let me know if there is something wrong
    $ cmd-that-should-not-fail || teleme 'something weird just happened'
    

License

MIT © Tianxiang Chen

Keywords

cli-app

FAQs

Package last updated on 14 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts