Comments (4)
Got it working... I now realise what impact the Twitter rate limit has, and why you set polling interval to 49 seconds. 15 requests per 15 mins! It doesn't really allow for a 'conversational' experience. Not a ProgramY issue - common to any bot using Twitter REST APIs.
Seems a replacement API is coming but you have to request access to the BETA, and will require externally accessible host with TLS: Account Activity API
Does the Facebook API have the same issue re 30 second polling?
from program-y.
As you have found out the Twitter client does limit what you can do, but you'd be surprised what you can get away with. Each request is for all transactions, so a single call to get DMs or Follows brings all since the last call. You can reduce the polling interval to 30 and it still works, however during development its better to have a longer one as not to run into rate limits. I have run productions systems this way in the past with no issue from customers
The code I have does start to implement the streaming API, but is not finished. As you say it needs TLS and pass through your firewall, given the rate of development its a lot of effort at the moment, and very difficult on a train each morning and evening;-) so its on the backlog, just not got round to finishing it
from program-y.
Understood ... I can use Twitter for demo and am still keen to see Skype for business sometime soonish. I suspect it will be similar (as in server push vs polling) so hopefully there is some leverage.
I understand that it may need to wait until post 1.0 as its still just another client though. We need your brains on the bot brain :-)
from program-y.
Added comments to the documentation, as no issue closing for now
from program-y.
Related Issues (20)
- Programy on PythonAnywhere HOT 1
- Program-Y is alive.... again HOT 2
- <system> tag in aiml doesn't work HOT 1
- scheduling extension doesn't print message
- Error when trying to save data from 'learnf' elements to MongoDB HOT 2
- Wikipedia doesn't seam to work HOT 1
- <learn> and <star> don't work together HOT 1
- How to get a variable value outside of aiml files inside python code?
- Setting SentenceSplitter on an embedded bot HOT 4
- Whenever I install program y, cryptography fails to install and the whole installation stops.
- Bug in pattern parser where the star index of the words will change
- WARNING:root:[Console] [bot] [brain] [testuser] - System command node disabled in config
- ModuleNotFoundError: No module named 'sqlalchemy'
- Pattern matching not work in a right way
- image not displaying in telegram
- GUI for my bot (Not a feature request I was just unsure where to ask) HOT 1
- Change Default Response
- AttributeError: module 'collections' has no attribute 'MutableSet' HOT 3
- module apscheduler not found
- Thoughts about ChatGPT service for ProgramY
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from program-y.