help= 'Login for your bot-account. Opens new feature like a parsing timetable') parser.add_argument('-Pp', '--parser-password', help='Password for your bot-account.') args = vars(parser.parse_args()) bot = EventHandler() token = args.get('token') # Creating group-class group = Group() group.auth(token) group.connect_storage(DBProxy(Member)) bot.set_group(group) # Setup account for bot. This is need for parsing group wall and timetable account = BotAccount.get_account() account.auth(args.get('parser-login'), args.get('parser-password')) # Setup observers that handle commands command_observer = IObserver.get_observer(CommandObserver) notify_observer = IObserver.get_observer(NotifyCheckerObserver) notify_observer.set_group(group) # ================================================================= # Setup commands time = '18:05' # Timetable tt_time = ('7:00', '20:00')