sukeesh / Jarvis

Personal Assistant for Linux and macOS
MIT License
2.99k stars 1.03k forks source link

Finished Wordgame plugin #1164

Closed JimNtantakas closed 6 months ago

pnhofmann commented 7 months ago

This isn't integrated in Jarvis, please refere: https://github.com/sukeesh/Jarvis/blob/master/doc/PLUGINS.md

pnhofmann commented 7 months ago

Hmm, unfortunately still throws lots of exceptions while executing

Some error occurred, please open an issue on github!
Here is error:

Traceback (most recent call last):
  File "/home/phil/g/Jarvis/jarviscli/CmdInterpreter.py", line 286, in try_do
    do(self, s)
  File "/home/phil/g/Jarvis/jarviscli/plugin.py", line 208, in run
    self._backend[0](jarvis.get_api(), s)
TypeError: Word_game() takes 1 positional argument but 2 were given

Traceback (most recent call last):
  File "/home/phil/g/Jarvis/jarviscli/CmdInterpreter.py", line 286, in try_do
    do(self, s)
  File "/home/phil/g/Jarvis/jarviscli/plugin.py", line 208, in run
    self._backend[0](jarvis.get_api(), s)
  File "/home/phil/g/Jarvis/jarviscli/plugins/Wordgame.py", line 17, in Word_game
    d = enchant.Dict("en_US")
        ^^^^^^^^^^^^
AttributeError: module 'enchant' has no attribute 'Dict'
Some error occurred, please open an issue on github!
Here is error:

Traceback (most recent call last):
  File "/home/phil/g/Jarvis/jarviscli/CmdInterpreter.py", line 286, in try_do
    do(self, s)
  File "/home/phil/g/Jarvis/jarviscli/plugin.py", line 208, in run
    self._backend[0](jarvis.get_api(), s)
  File "/home/phil/g/Jarvis/jarviscli/plugins/Wordgame.py", line 22, in Word_game
    jarvis.say("Round ",current_rounds)
  File "/home/phil/g/Jarvis/jarviscli/CmdInterpreter.py", line 45, in say
    print(color + text + Fore.RESET, flush=True)
          ~~~~~~^~~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'str'
pnhofmann commented 6 months ago

Thanks!