Skip to content

a Wrapper for the SlackClient python library that in the future will also support other Messaging/Notification apps like hipchat

License

Notifications You must be signed in to change notification settings

tiaanwillemse/pythonNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pythonNotifier

a Wrapper for the SlackClient python library that in the future will also support other Messaging/Notification apps like hipchat

##Usage:

Initialize Notifier and assign it to a variable. Get your Slack API key here: https://api.slack.com/docs/oauth-test-tokens

notifier = Notifier('xoxp-< https://api.slack.com/docs/oauth-test-tokens >', 'slack')

Configure Notifier by setting your own username and channel

notifier.configure({'username': 'Slack Bot', 'channel' : 'general'})

Send your first notification

notifier.message('random message')
notifier.message({'text': 'random message with custom color', 'color': '#0017D9'})

Some helper functions to keep

notifier.info('info text...')
notifier.info({'text': 'Info text with a title', 'title' : 'The Title'})

notifier.good('Green means that everything is good')
notifier.warning('Orange means that something went wrong but it\'s not critical')
notifier.danger('Red means that something critical has occured')

Example Image

About

a Wrapper for the SlackClient python library that in the future will also support other Messaging/Notification apps like hipchat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages