mortrevere / enlargeyourfrench Goto Github PK
View Code? Open in Web Editor NEWA Discord bot game to enlarge your french
License: The Unlicense
A Discord bot game to enlarge your french
License: The Unlicense
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
Examples :
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)
Currently you can see the number of point that you have accumulated throughout the game.
Would it be possible to add the number of game that you have won ?
Thanks
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
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.