init
This commit is contained in:
@@ -20,10 +20,10 @@ class SlackBot:
|
||||
|
||||
return
|
||||
|
||||
def post_live_to_slack(self, stock_code):
|
||||
def post_live_to_slack(self, stock_code, stock_name):
|
||||
try:
|
||||
this_time = datetime.now()
|
||||
text = "ALIVE (" + this_time.strftime('%Y-%m-%d %H:%M:%S') + ") " + stock_code
|
||||
text = "ALIVE (" + this_time.strftime('%Y-%m-%d %H:%M:%S') + ") " + stock_code + "(" + stock_name +")"
|
||||
result = self.client.chat_postMessage(
|
||||
channel=self.CHANNEL_ID,
|
||||
text=text
|
||||
|
||||
Reference in New Issue
Block a user