Changeset 9be02d9 in python-cinema-club-bot for main.py


Ignore:
Timestamp:
Oct 10, 2024, 4:12:00 AM (5 weeks ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
8d2d5ac
Parents:
6623428
Message:

Fix #9. Add events commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6623428 r9be02d9  
    3636    )
    3737
     38
    3839async def error_handler(update: object, context: ContextTypes.DEFAULT_TYPE) -> None:
    3940    logging.error("Exception:", exc_info=context.error)
     
    5556    app.add_handler(CommandHandler("about", commands.about))
    5657
     58    # Event commands
     59    app.add_handler(CommandHandler("event", commands.create_event))
     60    app.add_handler(CommandHandler("events", commands.list_events))
     61
    5762    # Movie commands
    5863    app.add_handler(CommandHandler("movie", commands.movie))
    5964    app.add_handler(CommandHandler("movies", commands.movies))
    6065    app.add_handler(CommandHandler("movies_remove", commands.remove_movies))
    61    
     66
    6267    # Users commands
    6368    app.add_handler(CommandHandler("set", commands.set_users))
    6469    app.add_handler(CommandHandler("add", commands.add_users))
    6570    app.add_handler(CommandHandler("list", commands.list_users))
     71    app.add_handler(CommandHandler("users", commands.list_users))
    6672    app.add_handler(CommandHandler("remove", commands.remove_users))
    6773    app.add_handler(CommandHandler("chooser", commands.chooser_user))
Note: See TracChangeset for help on using the changeset viewer.