-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start fixinng plugins and getting server running
- Loading branch information
Showing
6 changed files
with
19 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import requests | ||
import datetime | ||
|
||
# define all commonly used variables here | ||
now = datetime.datetime.now() | ||
|
||
response = requests.get('http://127.0.0.1:8000/speak') | ||
def handle(command): | ||
|
||
if "time" in command: | ||
time_now = now.strftime("%H:%M:%S") | ||
akulai.speak(f"The current time is{time_now}") | ||
speak(f"The current time is{time_now}") | ||
|
||
if "date" in command: | ||
date_now = now.strftime("%Y-%m-%d") | ||
akulai.speak(f"The current date is{date_now}") | ||
speak(f"The current date is{date_now}") |