This commit is contained in:
dsyoon
2023-10-26 23:03:30 +09:00
parent 9d8f174ec6
commit 1489508d8e
13 changed files with 181 additions and 96 deletions

View File

@@ -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):