Skip to content

crag-h4k/py_slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py_slack

basic webhook messages, want interactivity next

CLI

python3 send_hook.py https://hook_url/xxxxx/xxxx string_of_txt

In Code

In practice, I use this to send JSONs of Python objects. Here's how to use it in code:

from send_hook import send_msg_hook

send_hook_msg(hook_url, msg, format_type)
#hook_url expects a string url with the appropriate protocol at the beginning, for example http:// or https://
#msg expects either a dictionary or a string
#format_type defaults to 'snippet', but can be set to 'plain'

About

basic webhook messages, want interactivity next

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages