This commit is contained in:
dsyoon
2024-03-21 00:06:20 +09:00
parent e711a8e3c4
commit abe2d75f5b
2 changed files with 6 additions and 6 deletions

View File

@@ -527,8 +527,8 @@ class AnalyzerSqlite:
title = "[Summary] bull: %d (%.2f), bear: %d (%.2f), even: %d (%.2f)" % (param['bull'][0], param['bull'][0]/sum, param['bear'][0], param['bear'][0]/sum, param['even'][0], param['even'][0]/sum) title = "[Summary] bull: %d (%.2f), bear: %d (%.2f), even: %d (%.2f)" % (param['bull'][0], param['bull'][0]/sum, param['bear'][0], param['bear'][0]/sum, param['even'][0], param['even'][0]/sum)
fig['layout'].update(title=title) fig['layout'].update(title=title)
fileName = "%s/summary.html" % (self.outPath) #fileName = "%s/summary.html" % (self.outPath)
po.write_html(fig, file=fileName, auto_open=False) #po.write_html(fig, file=fileName, auto_open=False)
return return

View File

@@ -24,9 +24,9 @@ class TelegramBot:
username for the bot: ncue_stock_bot username for the bot: ncue_stock_bot
token to access the HTTP API: 6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw token to access the HTTP API: 6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw
""" """
self.botname = "coinbot" self.botname = "stockbot"
self.username = "ncue_coin_bot" self.username = "ncue_stock_bot"
self.token = "6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM" self.token = "6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw"
self.chat_id = '574661323' self.chat_id = '574661323'
self.client = telegram.Bot(token=self.token) self.client = telegram.Bot(token=self.token)
@@ -37,7 +37,7 @@ class TelegramBot:
@staticmethod @staticmethod
def send(text): def send(text):
client = telegram.Bot(token="6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM") client = telegram.Bot(token="6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw")
if platform.system().lower() == 'windows': if platform.system().lower() == 'windows':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(client.send_message(chat_id='574661323', text=text)) asyncio.run(client.send_message(chat_id='574661323', text=text))