update words
This commit is contained in:
parent
7342416cbc
commit
e08afa4677
97670
assets/all_words.js
Normal file
97670
assets/all_words.js
Normal file
File diff suppressed because it is too large
Load diff
3
index.js
3
index.js
|
@ -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]))
|
||||
|
|
Loading…
Reference in a new issue