game-quests
v1.0.3
Published
This is a package that contains random game questions
Maintainers
Readme
Game Quests
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.
Installation
To install the package, use npm:
npm install game-questsUsage
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}`);
});Environment Variables
This package uses the dotenv package to manage environment variables. Create a .env file in your project root and define the following variable:
PORT=3200Dependencies
express: ^5.1.0dotenv: ^16.5.0palindrome-checks: ^1.0.1
Author
This package was created by Caroline.
License
This project is licensed under the ISC License.
Keywords
- game
- game-quests
- sqi
- questions
