mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Removes "check_news" command.
This command is made redundant by the browse_website command.
This commit is contained in:
@@ -32,8 +32,6 @@ def execute_command(command_name, arguments):
|
||||
try:
|
||||
if command_name == "google":
|
||||
return google_search(arguments["input"])
|
||||
elif command_name == "check_news":
|
||||
return check_news(arguments["source"])
|
||||
elif command_name == "check_notifications":
|
||||
return check_notifications(arguments["website"])
|
||||
elif command_name == "memory_add":
|
||||
@@ -115,11 +113,6 @@ def get_hyperlinks(url):
|
||||
link_list = browse.scrape_links(url)
|
||||
return link_list
|
||||
|
||||
def check_news(source):
|
||||
print("Checking news from BBC world instead of " + source)
|
||||
_text = get_text_summary("https://www.bbc.com/news/world")
|
||||
return _text
|
||||
|
||||
def commit_memory(string):
|
||||
_text = f"""Committing memory with string "{string}" """
|
||||
mem.permanent_memory.append(string)
|
||||
|
||||
Reference in New Issue
Block a user