Added Magic 8-Ball game.

This commit is contained in:
Niels Simenon
2022-10-28 00:22:00 +02:00
parent 34fb977e77
commit acf60eeca0
104 changed files with 124 additions and 5 deletions

0
src/utils/get-leaders.js Normal file → Executable file
View File

0
src/utils/get-word-key.js Normal file → Executable file
View File

0
src/utils/pick-random.js Normal file → Executable file
View File

0
src/utils/shuffle.js Normal file → Executable file
View File

2
src/utils/style.js Normal file → Executable file
View File

@@ -50,7 +50,7 @@ module.exports = (() => {
bold: schatBold,
italic: schatItalic,
code: schatCode,
...Object.fromEntries(Object.entries(config.schatColors).map(([color, value]) => [color, (text) => schatColor(text, value)])),
...Object.fromEntries(Object.entries(config.schatColorAliases).map(([color, value]) => [color, (text) => schatColor(text, value)])),
};
const handler = {