From 29d34991459164bd180e611f45241ede30f98e2a Mon Sep 17 00:00:00 2001 From: dsyoon Date: Fri, 22 Mar 2024 00:24:33 +0900 Subject: [PATCH] init --- StockCrawler.py | 2 +- stock/util/TelegramBot.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/StockCrawler.py b/StockCrawler.py index 40ea361..530d7f2 100644 --- a/StockCrawler.py +++ b/StockCrawler.py @@ -117,7 +117,7 @@ class StockCrawlerDaily: print("\n[US 종목 수집]") stockCrawler.crawl_special_stocks(stockFileName) - analyzerSqlite = AnalyzerSqlite(stockFileName) + analyzerSqlite = AnalyzerSqlite(RESOURCE_PATH) print("\n[종목 결정]") # HTML 출력 diff --git a/stock/util/TelegramBot.py b/stock/util/TelegramBot.py index 0946877..f572b0c 100644 --- a/stock/util/TelegramBot.py +++ b/stock/util/TelegramBot.py @@ -24,9 +24,9 @@ class TelegramBot: username for the bot: ncue_stock_bot token to access the HTTP API: 6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw """ - self.botname = "coinbot" - self.username = "ncue_coin_bot" - self.token = "6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM" + self.botname = "stockbot" + self.username = "ncue_stock_bot" + self.token = "6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw" self.chat_id = '574661323' self.client = telegram.Bot(token=self.token) @@ -37,7 +37,7 @@ class TelegramBot: @staticmethod def send(text): - client = telegram.Bot(token="6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM") + client = telegram.Bot(token="6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw") if platform.system().lower() == 'windows': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) asyncio.run(client.send_message(chat_id='574661323', text=text))