Skip to content

Commit

Permalink
0.2.3 -- add some optional args for friendlier config
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Aug 18, 2023
1 parent fe125d5 commit 8602b89
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion agentcomms/discord/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 17 additions & 2 deletions agentcomms/twitter/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8602b89

Please sign in to comment.