Removes "check_news" command.

This command is made redundant by the browse_website command.
This commit is contained in:
Torantulino
2023-04-02 09:12:08 +01:00
parent 9b375315a0
commit a2e5de7469
2 changed files with 17 additions and 25 deletions

View File

@@ -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)