Hi can I run multiple keyword listeners in the same bot??
trismegistis opened this issue · comments
Seems like its not picking up my keywords with multiple "tweetbot.twitter_autoreply_start(" functions called..
That's right, the function signals an existing Thread what to do; it doesn't launch a new one with new parameters. There are two ways to make your bot reply to multiple keywords:
- Combine multiple search keywords into a single string. This will make your auto-replier reply to all of the search keywords by using the same library/libraries (or using different languages; it depends on what you passed to the
twitter_autoreply_start
method). The Twitter dev site gives a great explanation here. In short, you can use'foo bar'
to auto-reply only when'foo'
AND'bar'
appear in a tweet together, or you can use'foo, bar'
to auto-reply to tweets that contain'foo'
OR'bar'
. - You could start multiple instances of MarkovBot, each with their own specific auto-reply parameters.
Awesome! Thanks. I got my test account banned because I made multiple scripts to listen to each and every keyword, and they started conflicting xD
Hahaha, woops! Yeah, you have to respect Twitter's post limits. Also, spamming random Twitter users is not cool, so keep the auto-replying within limits ;)
(PS: Closing the issue, as it's resolved. Please do open a new one if you need anything else.)