From ba1f43b593c656eeec8fb2817f6cff5ad29619bf Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Sun, 31 Jan 2021 17:14:15 -0700 Subject: [PATCH] code cleanup --- bot.py | 12 +++--------- functions.py | 6 +++++- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/bot.py b/bot.py index 706d406..900f3b6 100644 --- a/bot.py +++ b/bot.py @@ -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): diff --git a/functions.py b/functions.py index 81071c3..a0bbb15 100644 --- a/functions.py +++ b/functions.py @@ -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) \ No newline at end of file