diff --git a/bot.py b/bot.py index e5a2712..4234533 100644 --- a/bot.py +++ b/bot.py @@ -28,7 +28,11 @@ help1='' def log_function(dispatcher,name,function1): global help1 dispatcher.add_handler(CommandHandler(name,function1)) - help1=help1+str('/'+name)+' -> '+function1.__doc__+'\n\n' + try: + help1=help1+str('/'+name)+' -> '+function1.__doc__+'\n\n' + except: + help1=help1+str('/'+name)+' -> Not documented\n\n' + #Idioma espaƱol es={'help':'''/start - Inicia el bot @@ -137,7 +141,6 @@ def help(update:Update, context: CallbackContext) -> None: def set(update:Update, context: CallbackContext) -> None: - """Establece alguna configuraciones""" if update.message.text.replace("/set ","").split(" ")[0]=="language": if "en" in update.message.text.replace("/set ","").split(" "): f=io.open(update.effective_user.username,"w")