scheduling extension doesn't print message #37

Open
opened 2025-10-14 17:28:26 -06:00 by navan · 0 comments
Owner

Originally created by @shagho on 4/25/2021

I write a program with your library that's work with embedbasicbot and i use scheduling grammar and doesn't work(doesn't print any thing) and i investigate the codes of scheduling that's work but just doesn't print so i use two library, one for seeing the message as notification and other for make a sound(beepy and notify)
below is code that i changed:

def scheduled(self, userid, clientid, action, text):
        YLogger.debug(None, "Processing Scheduled Event [%s] [%s] [%s] [%s] [%s]",
                      self.name, userid, clientid, action, text)
        client_context = self._client.create_client_context(userid)
        if action == 'TEXT':
            notification(text)
            beep(sound=4)
        elif action == 'SRAI':
            response = client_context.bot.ask_question(client_context, text)
            self._client.render_response(client_context, response)
        else:
            YLogger.error(client_context, "Unknown scheduler command [%s]", action)
*Originally created by @shagho on 4/25/2021* I write a program with your library that's work with embedbasicbot and i use scheduling grammar and doesn't work(doesn't print any thing) and i investigate the codes of scheduling that's work but just doesn't print so i use two library, one for seeing the message as notification and other for make a sound(beepy and notify) below is code that i changed: ```python def scheduled(self, userid, clientid, action, text): YLogger.debug(None, "Processing Scheduled Event [%s] [%s] [%s] [%s] [%s]", self.name, userid, clientid, action, text) client_context = self._client.create_client_context(userid) if action == 'TEXT': notification(text) beep(sound=4) elif action == 'SRAI': response = client_context.bot.ask_question(client_context, text) self._client.render_response(client_context, response) else: YLogger.error(client_context, "Unknown scheduler command [%s]", action) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/program-y#37
No description provided.