def main(): bot = ThanksForFollowing() tweebot.enable_logging(bot) bot.start_forever( SelectFollowers, tweebot.BaseFilter, ReplyTemplateDirect(TEMPLATES))
def main(): initRepository() # Setup Queries for index, value in enumerate(queries): queries[index] = twb.SearchQuery(value) # Setup Bot bot = twb.Context({ 'app_name' : config['app_name'], 'username' : config['username'], 'consumer_key' : config['consumer_key'], 'consumer_secret' : config['consumer_secret'], 'access_key' : config['access_key'], 'access_secret' : config['access_secret'], 'timeout' : config['timeout'] or 1 * 60, # once every minute. 'history_file' : config['history_file'] or 'history.json', }) twb.enable_logging(bot) UnblockUsers(bot.get_api()) bot.start_forever( twb.MultiPart.Add(*queries), twb.MultiPart.And(BlockedFilter), FoolishReplyClass(phrases))
def main(): bot = Repeater() tweebot.enable_logging(bot) bot.start_forever( tweebot.SearchMentions(), tweebot.MultiPart.And(tweebot.BaseFilter, tweebot.UsersFilter.Friends(reload_every=100), tweebot.BadTweetFilter), tweebot.ReplyRetweet)
def main(): bot = Repeater() tweebot.enable_logging(bot) bot.start_forever( tweebot.SearchMentions(), tweebot.MultiPart.And( tweebot.BaseFilter, tweebot.UsersFilter.Friends(reload_every=100), tweebot.BadTweetFilter), tweebot.ReplyRetweet)
def main(): bot = Ithinkyoumeant() tweebot.enable_logging(bot) bot.start_forever( tweebot.MultiPart.Add( tweebot.SearchMentions(), tweebot.SearchQuery('"weather or not"')), tweebot.MultiPart.And( tweebot.BaseFilter), tweebot.ReplyTemplate(TEMPLATES))
def main(): bot = Complementor() tweebot.enable_logging(bot) bot.start_forever( tweebot.MultiPart.Add(tweebot.SearchMentions(), tweebot.SearchQuery('complementor')), tweebot.MultiPart.And( tweebot.BaseFilter, tweebot.MultiPart.Or(tweebot.UsersFilter.Friends(), tweebot.UsersFilter.Followers())), tweebot.ReplyTemplate(TEMPLATES))
def main(): bot = Complementor() tweebot.enable_logging(bot) bot.start_forever( tweebot.MultiPart.Add( tweebot.SearchMentions(), tweebot.SearchQuery('complementor')), tweebot.MultiPart.And( tweebot.BaseFilter, tweebot.MultiPart.Or( tweebot.UsersFilter.Friends(), tweebot.UsersFilter.Followers())), tweebot.ReplyTemplate(TEMPLATES))