Skip to content

Commit

Permalink
fix: translating script as described in the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
vetom committed Sep 13, 2018
1 parent 79e5efa commit de00b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moderator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.getScriptFromDeck = (deck, lang = 'en') => {
const seq = sequence.filter(call => roles.has(call));
const pack = languages[lang].calls;

return seq.map(key => pack[key]);
return seq.map(key => ({ key, call: pack[key] }));
};

exports.fromGame = (gameDeck, deck) => sequence.map((callKey) => {
Expand Down

0 comments on commit de00b64

Please sign in to comment.