Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduling extension doesn't print message #289

Open
shagho opened this issue Apr 25, 2021 · 0 comments
Open

scheduling extension doesn't print message #289

shagho opened this issue Apr 25, 2021 · 0 comments

Comments

@shagho
Copy link

shagho commented Apr 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant