Skip to content

Bot for learn.python.ru students&staff.

Notifications You must be signed in to change notification settings

moscowpython/capaldi

Repository files navigation

capaldi

Build Status

Bot for learn.python.ru students&staff.

Installation

pip install git+https://github.com/moscowpython/capaldi.git

Usage

First, provide following env vars:

  • Telegram bot token (TELEGRAM_BOT_TOKEN).
  • Telegram bot proxy settings (TELEGRAM_PROXY_URL, TELEGRAM_PROXY_LOGIN, TELEGRAM_PROXY_PASSWORD).
  • Telegram admin usernames (with @, comma-separated like @melevir,@korneevm, TELEGRAM_ADMINS). Optional.
  • Airtable credentials (AIRTABLE_API_KEY and AIRTABLE_BASE_ID).
  • Sentry API url (SENTRY_URL).
  • Redis url (in format redis://[[username]:[password]]@localhost:6379/0, REDIS_URL).

Then run one of following commands:

  • lp_run_bot – run Telegram bot.
  • lp_ask_for_feedback – ask students for feedback on current week.
  • lp_send_stat_report – send feedback statistics of current week.
  • lp_notify_on_tomorrow_event – notify students if there is course event tomorrow.

Run any command with --help to gel params list.

Run for development

cd learn_python_bot
PYTHONPATH=.. python bot.py

About

Bot for learn.python.ru students&staff.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages