Example #1
0
# Homework
hw = setup_command(HomeworkCommand, account, group.group_id)
# hw_time = ('6:00', '20:00')
# hw.add_activate_time(hw_time)

# Help and About
help = setup_command(HelpCommand)
about = setup_command(AboutCommand)

# =================================================================
# Adding command modules in particular handlers(observers)
commands = [
    about,
    help,
    ege,
    untill_ege,
    hw,  #timetable
]

command_observer.add_items(*commands)

notify_observer.add_items(*commands)

# Adding observers into bot
bot.set_command_observer(command_observer)
bot.set_command_checker(notify_observer)

# Start mainloop
bot.listen()