Skip to content

Commit 8bd7618

Browse files
committed
TASK: Update some comments
1 parent 5a2c97e commit 8bd7618

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,15 @@ def game_commands(bot, update):
129129
game.analyze_message(update)
130130

131131

132-
# Decorator for marking admin methods
133132
def stop_and_restart():
134133
"""Gracefully stops the Updater and replaces the current process with a new one"""
135134
updater.stop()
136135
os.execl(sys.executable, sys.executable, *sys.argv)
137136

138137

139138
def admin_method(func):
139+
"""Decorator for marking methods as admin-only methods, so that strangers can't use them"""
140+
140141
def admin_check(bot, update):
141142
db = DBwrapper.get_instance()
142143
user = update.message.from_user
@@ -329,6 +330,7 @@ def cancel_cmd(bot, update):
329330

330331

331332
def hide_cmd(bot, update):
333+
"""Hides the keyboard in the specified chat."""
332334
chat_id = update.message.chat_id
333335
reply_markup = ReplyKeyboardRemove()
334336
bot.sendMessage(chat_id=chat_id, text="\U0001F44D", reply_markup=reply_markup)

0 commit comments

Comments
 (0)