UNPKG

talkshitgetdared

Version:

The truth will hurt. An open-source cursed-core engine for Truth & Dare prompts.

147 lines (103 loc) โ€ข 4 kB
# TalkShitGetDared ๐Ÿ’€ [![npm version](https://img.shields.io/npm/v/talkshitgetdared.svg?style=flat-square)](https://www.npmjs.com/package/talkshitgetdared) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT) [![Build Status](https://img.shields.io/github/actions/workflow/status/kyrexiii/TalkShitGetDared/ci.yml?branch=main&style=flat-square)](https://github.com/kyrexiii/TalkShitGetDared/actions) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg?style=flat-square)](https://www.typescriptlang.org/) A dangerously cursed, zero-dependency TypeScript package for all your Truth or Dare needs. Perfect for bots, APIs, party games, emotionally unstable couples, and Discord servers with too much time on their hands. > **Warning:** Use responsibly... or donโ€™t. Iโ€™m not legally responsible if your relationship ends (again). --- ## ๐Ÿ“š Documentation For detailed documentation, API references, and advanced usage, visit: ๐Ÿ‘‰ **[haruka.lol/projects/TalkShitGetDared](https://haruka.lol/projects/TalkShitGetDared)** --- ## ๐Ÿ”ฅ Features **TalkShitGetDared** is a JSON-fueled chaos engine packed with: - ๐ŸŽญ **380+ Prompts:** Truths that hurt and dares that might get you arrested. - ๐ŸŒ **Multi-Language Support:** - ๐Ÿ‡บ๐Ÿ‡ธ **English** (SFW + NSFW) - ๐Ÿ‡ช๐Ÿ‡ธ **Spanish** (SFW + NSFW) - ๐Ÿ‡ฎ๐Ÿ‡ณ **Hinglish** (SFW + NSFW) _(New!)_ - ๐Ÿ”ž **Dual Modes:** Safe for Work (SFW) and Not Safe for Work (NSFW). - ๐ŸŽฏ **Advanced Filtering:** Filter by difficulty (`easy`, `medium`, `hard`, `extreme`) and category. - ๐Ÿ“ฆ **Batch Operations:** Get multiple unique prompts in a single call. - ๐Ÿšซ **Deduplication:** Optional history tracking to prevent repeating prompts. - ๐Ÿ› ๏ธ **CLI Tool:** Run truth or dare directly from your terminal. - โšก **Zero Dependencies:** Lightweight and fast. --- ## ๐Ÿš€ Installation ```bash npm install talkshitgetdared ``` or if you prefer other package managers: ```bash pnpm add talkshitgetdared # or yarn add talkshitgetdared ``` --- ## ๐Ÿ’ป Usage ### Library Usage ```typescript import { getTruth, getDare, getRandom, getBatch } from 'talkshitgetdared'; // ๐ŸŽฒ Get a random truth const truth = getTruth(); console.log(truth.prompt.text); // ๐Ÿ˜ˆ Get a specific dare const dare = getDare({ mode: 'nsfw', difficulty: 'hard', language: 'english' }); console.log(dare.prompt.text); // ๐Ÿ“ฆ Get a batch of 5 unique SFW prompts const batch = getBatch({ count: 5, mode: 'sfw', ensureUnique: true }); console.log(batch.prompts.map(p => p.prompt.text)); ``` ### CLI Usage You can use the CLI directly without installing via `npx`: ```bash # Get a random truth npx talkshitgetdared truth # Get a NSFW dare npx talkshitgetdared dare --mode nsfw # Get a Hinglish prompt npx talkshitgetdared random --language hinglish # View library statistics npx talkshitgetdared stats ``` --- ## ๐Ÿ“‚ Project Structure ``` src/ โ”œโ”€โ”€ data/ # Prompt data files (JSON/TS) โ”‚ โ””โ”€โ”€ lang/ # Organized by language/mode โ”œโ”€โ”€ lib/ # Core logic โ”‚ โ”œโ”€โ”€ core/ # Main entry point โ”‚ โ”œโ”€โ”€ services/ # Business logic services โ”‚ โ””โ”€โ”€ types/ # TypeScript definitions โ””โ”€โ”€ cli.ts # CLI implementation ``` --- ## ๐Ÿค Contributing Want to contribute your cursed prompts? Fork it, PR it, or write them on a napkin and throw it into the ocean. If it floats back to me, Iโ€™ll probably add it. Check out the [Contributing Guidelines](CONTRIBUTING.md) for more details. --- ## โš ๏ธ Emotional Disclaimer This package will not fix your situationship, improve your friendships, or help you get your ex back. It *might*, however, destroy all three at once. I will **not** be attending your therapy session. --- ## ๐Ÿ“„ License MIT โ€” do literally anything. Just donโ€™t sue me if your friends block you. [View License](./LICENSE.txt)