Open danse opened 7 years ago
Another name was Tiversify
created accounts unlaud
, tiversify
, tiplicity
Brooke suggested unlaud
, i should delete the other accounts
Useful Haskell libraries:
There doesn't seem to be documentation from Twitter specifically for bots. The only reference seems to be the REST and streaming interfaces guide
It looks like i'm limited to one request per minute. In this case, it's highly likely that an user might have to wait before getting their answer from Unlaud. It seems rather simple to calculate the time needed for an answer, but i will need to keep a queue.
As an intermediate step, i could keep state to the minimum. Not keeping a queue, but only a semaphore indicating whether the bot is calculating something or it's free to perform a new request. This limits a lot the reach of the bot, but puts us in a good position to eventually extend features if desired
I started to write the high level code. The sequence of actions would be simpler if i hadn't to include the rate limiting logic. I am studying how rate limiting would work with Haskell libraries like http-client
, in order to structure the code in a way that is easy to develop, understand and maintain
A Twitter bot that answers to an
@unlaud me
request by telling the three most frequent twitter publishers in an user's feed, as in: