C:/Program Files/Git/share inserted and working

This commit is contained in:
Florian Kellermann
2022-03-16 10:02:28 +01:00
parent f28c0e69ef
commit 270667c6b5
3 changed files with 7 additions and 32 deletions

View File

@@ -7,9 +7,7 @@ __version__ = "0.0.2"
__license__ = "None"
import yfinance
import telebot
# S3W03GQH43I8O6IG
class Share_Handler:
def __init__(self):

View File

@@ -1,24 +0,0 @@
import time
import telebot
import share_fetcher
bot = 0
@bot.message_handler(func=lambda message: True)
def send_share_price(message):
fetcher = share_fetcher.Share_Handler()
str_price = fetcher.get_share_price(str(message.text))
return str_price
def main_loop(p_bot):
""" Get Information about bot status every 3 seconds
:raises: none
:rtype: none
"""
bot = p_bot
bot.infinity_polling()
while 1:
time.sleep(3)