다음과 같이 메시지를 보내면 됩니다 :)
from slacker import Slacker token = config.SLACK_TOKEN if token: slack = Slacker(token) # color: danger(red), good(green) text = '안녕 난 파이콘 슬랙봇이야 :)' attachment = { "color": 'good', "title": '스폰서 신청이 하나 들어와서 말이지 :money_with_wings:\n- 이름: 파이콘한국\n- 등급: 키스톤' } slack.chat.post_message( '#org-webservice', text=text, attachments=[attachment], username='sponsor-bot', icon_emoji=':female_mage:')
There was an error while loading. Please reload this page.