mycroftai / skill-joke Goto Github PK
View Code? Open in Web Editor NEWMycroft AI official Joke Skill - provide basic jokes
Home Page: https://mycroft.ai/skills
License: Apache License 2.0
Mycroft AI official Joke Skill - provide basic jokes
Home Page: https://mycroft.ai/skills
License: Apache License 2.0
tell me a dentist joke
What did the judge say to the dentist? Do you swear to pull the tooth, the whole tooth and nothing but the tooth?
tell me a hipster joke
How much does a hipster weigh? An instagram
would this be desired in official jokes skill? https://github.com/JarbasAl/skill-joke-universal , without the auto translate bit
it uses icanhazdadjoke.com to get jokes, since it supports searching it allows any categorie
i just don't want to make PRs for nothing :)
Hello, i got this exeption. Im using the Pi edition of Mycroft and stting up spanish language. I told 'tell me a joke' in my language.
Traceback (most recent call last):
File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
handler(message)
File "/opt/mycroft/skills/mycroft-joke.mycroftai/__init__.py", line 37, in handle_general_joke
self.speak_joke(self.lang[:-3], selected)
File "/opt/mycroft/skills/mycroft-joke.mycroftai/__init__.py", line 32, in speak_joke
self.speak(pyjokes.get_joke(language=lang, category=category))
File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/pyjokes/pyjokes.py", line 63, in get_joke
jokes = get_jokes(language, category)
File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/pyjokes/pyjokes.py", line 44, in get_jokes
raise CategoryNotFoundError('No such category %s in language %s' % (category, language))
pyjokes.pyjokes.CategoryNotFoundError: No such category chuck in language es
Hello, first I want to thank you for writing this skill. I use the skill with german language and have the problem that the pyjoke library returns no jokes found for this language. I read in the last issue with the german language that the skill trys to translate a joke if there is no joke for a language but in my case there is no translation. If I change the language (not in the mycroft config but in the line where it is used in the skill) to english it works but the english jokes are pronounced in german. I am not sure if this is how it should work or if there is a problem. Anyway thank you for your work!
Edit: The skills tells me "no jokes found" (in english with correct pronounciation) if I use it with german language
I'm running a mycorft instance in Dutch (nl-nl
) mode, and I am able to trigger this skill by asking Mycroft to vertel een grap
. This triggers an error in the execution in the Joking Skill
because pyjokes doesn't support the dutch locale.
What is the point in adding translations when the skill cannot handle the requests in the translated language?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.