Make it easier to change version number
This commit is contained in:
parent
c65fd52f19
commit
4116023f98
4
bot.py
4
bot.py
@ -12,6 +12,8 @@ import telepot
|
|||||||
from telepot.loop import MessageLoop
|
from telepot.loop import MessageLoop
|
||||||
from Task import Task
|
from Task import Task
|
||||||
|
|
||||||
|
VERSION = "v1.0"
|
||||||
|
|
||||||
|
|
||||||
PROPERTY_LAST_COMMAND = "last_command"
|
PROPERTY_LAST_COMMAND = "last_command"
|
||||||
PROPERTY_LAST_ARGUMENTS = "last_arguments"
|
PROPERTY_LAST_ARGUMENTS = "last_arguments"
|
||||||
@ -383,7 +385,7 @@ def user_help_info(chat_id):
|
|||||||
"""
|
"""
|
||||||
with open('help.md') as help_file:
|
with open('help.md') as help_file:
|
||||||
text = help_file.read()
|
text = help_file.read()
|
||||||
text += "\ntodo.txt bot for Telegram version 1"
|
text += "\ntodo.txt bot for Telegram version {0}".format(VERSION)
|
||||||
text += "\n[View help on GitHub](alvierahman90.github.io/todo.txt_telegram/help.html)"
|
text += "\n[View help on GitHub](alvierahman90.github.io/todo.txt_telegram/help.html)"
|
||||||
BOT.sendMessage(chat_id, text, parse_mode='Markdown')
|
BOT.sendMessage(chat_id, text, parse_mode='Markdown')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user