-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added plugin to get time #360
feat: added plugin to get time #360
Conversation
This is awesome, thanks @noriellecruz! |
@n3d1117 sure, i agree that using plain http requests would be better since it removes the need to install a new module. let me work that out. |
hi @n3d1117 can you check it again? |
Thanks @noriellecruz for the changes, looks good to me! Will merge soon |
@noriellecruz hey, fwiw just wanted to let you know that i slightly improved your original plugin: turns out the model is smart enough to make timezone conversions on the fly (no need for area/location separately). So it now also works for specific cities that aren't in the tz database! For example, if I ask "What time is it in Corfu?" the model will correctly resolve the timezone to "Europe/Athens". Let me know if you have any thoughts! |
@n3d1117 yeah, i saw it, it's neat. thanks. |
added plugin to get time from a timezone/location using https://worldtimeapi.org
requires WORLDTIME_DEFAULT_TIMEZONE in .env file