show logs inside the telegram bot
This commit is contained in:
5
bot.py
5
bot.py
@@ -8,7 +8,7 @@ from telegram import ReplyKeyboardRemove
|
||||
from utils import logs as _log
|
||||
|
||||
from entities import arena as _arena
|
||||
from bot_libs import upstart as _bot_upstart
|
||||
from bot_libs import special_commands as _bot_special_cmd
|
||||
from bot_libs import syms as _botsyms
|
||||
from bot_libs import commands_handling as _bot_commands
|
||||
|
||||
@@ -63,7 +63,8 @@ async def bot_commands(update, context):
|
||||
if waiting_for_seconds:
|
||||
return await _bot_commands.get_seconds_from_input(context, update, chat_id, text)
|
||||
|
||||
if text == 'upstart': return await _bot_upstart.update_bot(update, context)
|
||||
if text == 'upstart': return await _bot_special_cmd.update_bot(update, context)
|
||||
if text == 'logs': return await _bot_special_cmd.show_logs(update, context)
|
||||
|
||||
_log.log_debug(f'bot_command: {chat_id} - sent this text: {text}')
|
||||
await update.message.reply_text(_botsyms.WIP_MSG)
|
||||
|
||||
Reference in New Issue
Block a user