bot.basic Module¶
The module contains functionality for basic commands and functionality.
- bot.basic.info(update, _)¶
Returns some info about the bot.
- Parameters
update (
telegram.update.Update
) – The Telegram update._ – The callback context as provided by the dispatcher.
- Return type
- bot.basic.next_sweep(update, context)¶
Tells the user who’s turn on cleaning the rehearsal room it is on the upcoming tuesday and the one after.
- Parameters
update (
telegram.update.Update
) – The incoming Telegram Update.context (
telegram.ext.callbackcontext.CallbackContext
) – The callback context as provided by the dispatcher.
- Return type
- bot.basic.pause_unpause(update, context)¶
Pauses or unpauses the bot. Informs the user about the result.
- Parameters
update (
telegram.update.Update
) – The incoming Telegram Update.context (
telegram.ext.callbackcontext.CallbackContext
) – The callback context as provided by the dispatcher.
- Return type
- bot.basic.weekly_job(context)¶
If not currently paused, sends a message to all groups in the
bot.constants.BOARD_ROLE
andbot.constants.WATCHER_ROLE
roles- Parameters
context (
telegram.ext.callbackcontext.CallbackContext
) – The callback context as provided by the dispatcher.- Return type