From 6ebe1cf4aaf766bb1ff00aaa054265ab771e1852 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Fri, 28 Oct 2022 03:45:50 +0200 Subject: [PATCH] Added riddles outline. --- assets/riddles.json | 6 ++++++ src/games/riddle.js | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 assets/riddles.json create mode 100644 src/games/riddle.js diff --git a/assets/riddles.json b/assets/riddles.json new file mode 100644 index 0000000..d8e0a5f --- /dev/null +++ b/assets/riddles.json @@ -0,0 +1,6 @@ +[ + { + "riddle": "What has to be broken before you can use it?", + "answer": "An egg." + } +] diff --git a/src/games/riddle.js b/src/games/riddle.js new file mode 100644 index 0000000..1544a52 --- /dev/null +++ b/src/games/riddle.js @@ -0,0 +1,12 @@ +'use strict'; + +const riddles = require('../../assets/riddles.json'); + +const open = new Map(); + +function onCommand(args, context) { +} + +module.exports = { + onCommand, +};