shawnanastasio / python-matrix-bot-api

A Python API for making Matrix bots (https://matrix.org).
GNU General Public License v3.0
90 stars 34 forks source link

Event based system instead of polling ? #10

Open obiwankennedy opened 6 years ago

obiwankennedy commented 6 years ago

Hello !

Thanks for you work!

Is there a way to make the bot working on event base mode instead of polling ? or adjusting the polling frequency ?

I implement a dice roller bot but it is very slow. The time between the command and the notification of my bot is too long.

How can i reduce it ?

Regards

shawnanastasio commented 5 years ago

I believe the matrix protocol is inherently dependent on polling.

The actual API interaction is handled by matrix-python-sdk. On first glance, I don't see any easy way to adjust the polling frequency, but there should be some way to configure it.