From b5021d07b1667bb6a32dbc73f9d1ae2194bd1b44 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Nov 2020 12:12:28 -0500 Subject: [PATCH] [F] Fix markdown format parsing --- src/bot.py | 3 +++ src/commands.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bot.py b/src/bot.py index c58e2e1..f1de74a 100644 --- a/src/bot.py +++ b/src/bot.py @@ -27,3 +27,6 @@ if __name__ == '__main__': # Register commands dispatcher.add_handler(CommandHandler('start', start)) + + # Start bot + updater.start_polling() diff --git a/src/commands.py b/src/commands.py index d4b4e3d..446cb8a 100644 --- a/src/commands.py +++ b/src/commands.py @@ -4,21 +4,21 @@ Welcome! This bot monitors http changes! /start - Start the bot -**Management Commands** +*Management Commands* /ls - List the http requests you've created /touch - Create a http request /rm - Delete a http request /mv - Rename a http request -**Configuration Commands** +*Configuration Commands* /nano - Edit a http request /interval - Change the interval between the updates of a http request -**Start/Stop Commands** +*Start/Stop Commands* /enable - Start listening to a http request /stop - Stop listening to a http request """ def start(update, context): - context.bot.send_message(chat_id=update.effective_chat.id, text=helpMsg) + context.bot.send_message(chat_id=update.effective_chat.id, text=helpMsg, parse_mode="markdown")