Giter Site home page Giter Site logo

enlargeyourfrench's People

Contributors

klemek avatar mortrevere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

klemek

enlargeyourfrench's Issues

Fix this exception

Traceback (most recent call last):
  File "/tmp/venv/lib/python3.8/site-packages/discord/client.py", line 333, in _run_event
    await coro(*args, **kwargs)
  File "/tmp/venv/lib/python3.8/site-packages/miniscord/_bot.py", line 139, in on_message
    await self.__watcher(self.client, message)
  File "main.py", line 52, in message
    await games.get_game(chid).handle_response(str(message.author.id), message.content.lower().strip())
  File "/root/EnlargeYourFrench/games.py", line 269, in handle_response
    await self.next(player_id)
  File "/root/EnlargeYourFrench/games.py", line 232, in next
    await self.new_word()
  File "/root/EnlargeYourFrench/games.py", line 159, in new_word
    self.word, self.definition = wikidict.get_word_and_definition()
  File "/root/EnlargeYourFrench/wikidict.py", line 220, in get_word_and_definition
    definition = get_definition(word, LANG)  # TODO temporary
  File "/root/EnlargeYourFrench/wikidict.py", line 203, in get_definition
    definitions += [render_wikitext(line)]
  File "/root/EnlargeYourFrench/wikidict.py", line 164, in render_wikitext
    chunks_out += [templates.pop(0)]
IndexError: pop from empty list

it happens sometimes when generating a new word

[Bug] Say the correct number of letters

15 lettres, 3 mots : 
➥ (Familier) Être, de façon permanente, désorienté ou sénile.
...
perdre la boule

It should be 13 lettres, 3 mots (as you shouldn't expect to win 15 points here)

[Feat] Add number of words when giving definition

Woud it be possible to add the number of words required ?

Now :

BOT EnlargeYourFrench 25 lettres :
   ➥ Ensemble de circonstances qui, ensemble, contribuent de façon non planifiée à quelque chose.

After :

BOT EnlargeYourFrench 25 lettres - 3 mots :
   ➥ Ensemble de circonstances qui, ensemble, contribuent de façon non planifiée à quelque chose.

The answer is concours de circonstances.
Thanks

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.