Skip to content

New commands /status, /help and /start#20

Merged
sdelquin merged 11 commits intomasterfrom
status-command
May 16, 2019
Merged

New commands /status, /help and /start#20
sdelquin merged 11 commits intomasterfrom
status-command

Conversation

@euribates
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread bot.py
bot.send_message(chat_id=update.message.chat_id, text=config.BOT_GREETING)


def help(bot, update):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Como help es un builtin, aunque obviamente no lo vamos a usar aquí, quizá estaría bien hacer un poor-man-namespacing de las funciones de comando poniendoles numbres como command_help, command_start y así.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tienes razon, buena idea, lo hago ya mismo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lo hago en otra rama porque esta ya esta integrada en Master

Comment thread bot.py
)
logger.info('Starting bot...')
logger.info(f'- Log level is {config.LOG_LEVEL}')
logger.info(f'- Poll interval is {config.POLL_INTERVAL}')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genial idea, lo de poner la config en el log. De hecho, podríamos porner más. PrettyConf no tendrá alguna manera de acceder a todos los valores de configuración, ¿verdad?

@sdelquin sdelquin merged commit 70b29fc into master May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants