1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 07:16:40 +00:00

code cleanup

This commit is contained in:
Anson Biggs 2021-01-31 17:14:15 -07:00
parent f02ab0d14b
commit ba1f43b593
2 changed files with 8 additions and 10 deletions

12
bot.py
View File

@ -39,25 +39,19 @@ print("Bot Online")
def start(update, context):
"""Send a message when the command /start is issued."""
update.message.reply_text(
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
def help(update, context):
"""Send link to docs when the command /help is issued."""
update.message.reply_text(
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
def license(update, context):
"""Return bots license agreement"""
update.message.reply_text(
text=Symbol.license, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.license, parse_mode=telegram.ParseMode.MARKDOWN)
def donate(update, context):

View File

@ -63,7 +63,7 @@ An alternative way to donate is through https://www.buymeacoffee.com/Anson, whic
If you have any questions get in touch: @MisterBiggs or [anson@ansonbiggs.com](http://mailto:anson@ansonbiggs.com/)
*Donations can only be made in a chat directly with @simplestockbot
_Donations can only be made in a chat directly with @simplestockbot_
"""
def __init__(self, IEX_TOKEN: str):
@ -356,3 +356,7 @@ If you have any questions get in touch: @MisterBiggs or [anson@ansonbiggs.com](h
else:
return False
# s = Symbol("")
# print(s.donate_text)