Game Quests is a simple Node.js package that provides random game questions for fun and entertainment. It can be used in games, icebreakers, or just for casual conversations.
To install the package, use npm:
npm install game-quests
Here is an example of how to use the package:
const express = require('express');
const app = express();
require('dotenv').config();
const port = process.env.PORT || 3220;
const quests = [
'What is your name?',
'If I was a worm, will you marry me?',
'What is your favorite color?',
'Where are you from?',
'What is your love language?',
'Why are you broke?',
'Will you send me money?',
'Why are you so boring?',
'What is your favorite food?',
'What will you do if I kill your mother?',
'Truth or dare?',
'Am I pretty?',
'Rich and abusive or poor and kind?',
'Yahoo money or salary money?',
'Would you rather always be 10 minutes late or always be 20 minutes early?',
'What is your favorite flavor of ice cream?',
'If you could switch places with any famous person for a day, who would it be and what would you do?'
];
const testing = quests[Math.floor(Math.random() * quests.length)];
console.log(testing);
app.listen(port, () => {
console.log(`Server is running at: ${port}`);
});
This package uses the dotenv
package to manage environment variables. Create a .env
file in your project root and define the following variable:
PORT=3200
-
express
: ^5.1.0 -
dotenv
: ^16.5.0 -
palindrome-checks
: ^1.0.1
This package was created by Caroline.
This project is licensed under the ISC License.
- game
- game-quests
- sqi
- questions