Skip to content

Instantly share code, notes, and snippets.

@Calcium3d
Created April 11, 2020 11:59
Show Gist options
  • Save Calcium3d/dcd2de9fcb80859b19b2745e4461aeb2 to your computer and use it in GitHub Desktop.
Save Calcium3d/dcd2de9fcb80859b19b2745e4461aeb2 to your computer and use it in GitHub Desktop.
An open source virtual assistant. Please contribute
import datetime
str(entry)
bool(looptyloop)
def wishme():
hr = int(datetime.datetime.now().hour)
if 0 <= hr < 12:
print("Good Morning")
elif 12 <= hr < 17:
print("Good Afternoon")
elif 17 <= hr <= 24:
print("Good Evening")
else:
print("lol")
wishme()
while looptyloop:
{ if entry == "open google" or entry == "Open google" :
open("http://google.co.kr")
elif entry == "open reddit" or "Open reddit" :
open("https://www.reddit.com/")
elif entry == "open discord" or "Open dicord":
open("https://discordapp.com/")
elif entry == "current time":
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
elif entry == "current date":
today = date.today()
print("Today's date:", today)
elif entry == "sleep" :
print("Good Bye")
looptyloop = False
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment