Skip to content

Benoitdw/warnme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

pip install git+ssh://[email protected]/Benoitdw/warnme.git

Config

.env file is needed for secrets. It has to be in $HOME/.config/.warnme

See the Wiki for informations how to create the file.

You can take the .env file as a template.

Usage

As CLI

Usage: warnme [OPTIONS] [MESSAGE]

Options:
  --level [warning|info|fail|success]
                                  Indicate the level of the message
  --help                          Show this message and exit.

As library

from warnme.telegram_messager import TelegramMessager
TelegramMessager().send('hello ! :rocket:') 

if you want to make your message mroe Fancy

from warnme.telegram_messager import TelegramMessager
from warnme.message import Message, LevelType
TelegramMessager().send(Message('fail', level=LevelType.FAIL) 

About

Library / CLI to communicate with me

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages