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:
parent
f02ab0d14b
commit
ba1f43b593
12
bot.py
12
bot.py
@ -39,25 +39,19 @@ print("Bot Online")
|
|||||||
|
|
||||||
def start(update, context):
|
def start(update, context):
|
||||||
"""Send a message when the command /start is issued."""
|
"""Send a message when the command /start is issued."""
|
||||||
update.message.reply_text(
|
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
|
||||||
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def help(update, context):
|
def help(update, context):
|
||||||
"""Send link to docs when the command /help is issued."""
|
"""Send link to docs when the command /help is issued."""
|
||||||
|
|
||||||
update.message.reply_text(
|
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
|
||||||
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def license(update, context):
|
def license(update, context):
|
||||||
"""Return bots license agreement"""
|
"""Return bots license agreement"""
|
||||||
|
|
||||||
update.message.reply_text(
|
update.message.reply_text(text=s.license, parse_mode=telegram.ParseMode.MARKDOWN)
|
||||||
text=Symbol.license, parse_mode=telegram.ParseMode.MARKDOWN
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def donate(update, context):
|
def donate(update, context):
|
||||||
|
@ -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/)
|
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):
|
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:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
# s = Symbol("")
|
||||||
|
# print(s.donate_text)
|
Loading…
x
Reference in New Issue
Block a user