update words

This commit is contained in:
Simon Vieille 2022-02-01 17:05:42 +01:00
parent 7342416cbc
commit e08afa4677
2 changed files with 97672 additions and 1 deletions

97670
assets/all_words.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,6 +6,7 @@ import commander from 'bot-commander'
import showdown from 'showdown'
import uniqueRandomArray from 'unique-random-array'
import words from './assets/words.js'
import allWords from './assets/all_words.js'
import {
fileURLToPath
@ -98,7 +99,7 @@ const renderMatrix = (game, options) => {
const startGame = async (meta) => {
const word = randomWord()
games[meta.room] = new Game(word, words)
games[meta.room] = new Game(word, allWords)
await sendMessage(meta.room, 'Le mot commence par la lettre `' + word.substr(0, 1) + '`')
await sendMessage(meta.room, renderMatrix(games[meta.room]))