Git Product home page Git Product logo

skill-joke's Introduction

Jokes

Let Mycroft brighten your day with a little humor

About

Brighten your day with a little humor. This draws on the jokes collected by the PyJokes project to give you a chuckle.

The joke categories are:

  • Neutral -- jokes that are safe for work, kids or your grandmother
  • Chuck Norris -- jokes only a geek can love

WARNING: Laughter is not guaranteed, but eye rolls are likely.

Examples

  • "Make me laugh"
  • "Tell me a joke"
  • "Tell me a Chuck Norris joke"
  • "How about a neutral joke"

Credits

Mycroft AI (@MycroftAI)

Category

Entertainment

Tags

#joke #jokes #humor #humour #funny

skill-joke's People

Contributors

aatchison avatar augustnmonteiro avatar devs-mycroft avatar forslund avatar jarbasal avatar kathyreid avatar krisgesling avatar luke5sky avatar matthewscholefield avatar wginolas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skill-joke's Issues

No jokes found for german language

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

better/more jokes

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

Translations for non-supported languages

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?

Language problem

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.