pyTweetBot.execute_actions¶
This file contains a function to launch a thread for each action type that will execute the action accordingly to action scheduler rules.
pyTweetBot.execute_actions module¶
-
pyTweetBot.execute_actions.
execute_actions
(config, action_scheduler, no_tweet=False, no_retweet=False, no_like=False, no_follow=False, no_unfollow=False)¶ Launch threads that will execute each action thread.
- Examples:
>>> config = BotConfig.load("config.json") >>> action_scheduler = ActionScheduler(config=config) >>> execute_actions(config, action_scheduler)
- Arguments:
- config (BotConfig): Bot configuration of type
pyTweetBot.config.BotConfig
. - action_scheduler (ActionScheduler): Action management of type
pyTweetBot.executor.ActionScheduler
- no_tweet (Boolean): Do not execute tweet action
- no_retweet (Boolean): Do not execute retweet action
- no_like (Boolean): Do not execute like action
- no_follow (Boolean): Do not execute follow action
- no_unfollow (Boolean): Do not execute unfollow action
- config (BotConfig): Bot configuration of type