diff --git a/agentcomms/discord/connector.py b/agentcomms/discord/connector.py index 459744e..ee8b534 100644 --- a/agentcomms/discord/connector.py +++ b/agentcomms/discord/connector.py @@ -65,7 +65,7 @@ def send_message(message, channel_id): print("Message sent") -def start_connector(discord_api_token=None): +def start_connector(loop_dict=None, discord_api_token=None): """ Starts the Discord bot connector diff --git a/agentcomms/twitter/connector.py b/agentcomms/twitter/connector.py index 7253bc7..102cd68 100644 --- a/agentcomms/twitter/connector.py +++ b/agentcomms/twitter/connector.py @@ -258,6 +258,7 @@ def start_twitter( password=None, session_storage_path="twitter.cookies", start_loop=True, + loop_dict=None, ): """ Starts the Twitter connector. Initializes the global account object and starts the feed loop in a new thread. @@ -306,8 +307,22 @@ def start_twitter( return thread -def start_connector(): +def start_connector( + loop_dict=None, # dict of information for stopping the loop, etc + email=None, + username=None, + password=None, + session_storage_path="twitter.cookies", + start_loop=True, +): """ Convenience function to start the Twitter connector. This function calls start_twitter with the default arguments. """ - start_twitter() + start_twitter( + email=None, + username=None, + password=None, + session_storage_path="twitter.cookies", + start_loop=True, + loop_dict=None, + ) diff --git a/setup.py b/setup.py index ef7aed3..13b91d2 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( name="agentcomms", - version="0.2.2", + version="0.2.3", description="Social media connectors for agents", long_description=long_description, # added this line long_description_content_type="text/markdown", # and this line