init
This commit is contained in:
@@ -2,13 +2,13 @@ import time
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from datetime import datetime
|
||||
from stock.util.SlackBot import SlackBot
|
||||
from stock.util.TelegramBot import TelegramBot
|
||||
|
||||
class HTS_Alert :
|
||||
slackBot = None
|
||||
bot = None
|
||||
|
||||
def __init__(self):
|
||||
self.slackBot = SlackBot()
|
||||
self.bot = TelegramBot()
|
||||
return
|
||||
|
||||
def checkPrice(self, code):
|
||||
@@ -29,7 +29,7 @@ class HTS_Alert :
|
||||
c_price = int(arr[1].replace(',', ''))
|
||||
|
||||
if c_price < CHECK_PRICE[code_index]:
|
||||
self.slackBot.sendMsg(code + " " + str(CHECK_PRICE[code_index]) + " " + PERCENT[code_index] + "를 파세요...")
|
||||
self.bot.sendMsg(code + " " + str(CHECK_PRICE[code_index]) + " " + PERCENT[code_index] + "를 파세요...")
|
||||
code_index += 1
|
||||
|
||||
if code_index > len(CHECK_PRICE):
|
||||
|
||||
Reference in New Issue
Block a user