Skip to content

sdm-java-tutorial-organization/sdm-java-messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

slack notifier

사용법

com.nexon.mservice.slack.SlackNotifier slackNotifier = new com.nexon.mservice.slack.SlackNotifier(<SlackUrl>);
slackNotifier.notify("hello slack?");

함수종류

  • void notify(String text)
slackNotifier.notify("hello slack?");
  • void notifySimple(SlackColor color, String text, String author, String innerTitle, String innerText)
slackNotifier.notifySimple(
        SlackColor.INFO, 
        "hello slack?", 
        "nexon_man", 
        "slack lib.", 
        "this is slack lib.");
  • void notifyCustom(String stringOfJson)
slackNotifier.notifyCustom("{\"text\":\"hello slack?\"}")

색상

  • SlackColor.TRACE (gray)
  • SlackColor.DEBUG (green)
  • SlackColor.INFO (blue)
  • SlackColor.WARN (yellow)
  • SlackColor.ERROR (orange)
  • SlackColor.FATAL (red)

About

messenger 관련 자바프로젝트 정리 ( SMTP, slack, ... )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages