truth-or-dare
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

pog image

info

the bot website: https://truthordarebot.xyz/

library for getting shit from https://docs.truthordarebot.xyz/api-docs

powered by robert™

sponsored by my last 2 braincells and coding he is coding or something idk

epic docs

functions

// enable or disable a rating by default
function enable(rating?: Rating | Iterable<Rating>);
function disable(rating?: Rating | Iterable<Rating>);

// the api methods
function truth(rating?: Rating | Iterable<Rating>): Promise<Response>;
function dare(rating?: Rating | Iterable<Rating>): Promise<Response>;
function wyr(rating?: Rating | Iterable<Rating>): Promise<Response>;
function nhie(rating?: Rating | Iterable<Rating>): Promise<Response>;
function paranoia(rating?: Rating | Iterable<Rating>): Promise<Response>;

types

type Rating = "PG" | "PG13" | "R";
type Type = "TRUTH" | "DARE" | "WYR" | "NHIE" | "PARANOIA";
interface Response {
  id: string;
  type: Type;
  rating: Rating;
  question: string;
}

Readme

Keywords

none

Package Sidebar

Install

npm i truth-or-dare

Weekly Downloads

0

Version

1.0.6

License

none

Unpacked Size

12.2 kB

Total Files

5

Last publish

Collaborators

  • commandtechno