Options
All
  • Public
  • Public/Protected
  • All
Menu

cath

Index

Variables

config: ConfigURLS = ...

Functions

  • Start a Discord Activity session

    example

    const Cath = require("cath") const client = new Client() const d = await Cath.DiscordActivity({ application: "youtube", channel_id: "901542111005012099", token: client.token, }); message.channel.send({ content: d });

    Parameters

    Returns Promise<string>

  • HHMMSS(str: string): string
  • Returns a string(00:00:00)

    Parameters

    • str: string

    Returns string

  • bool(): boolean
  • Returns true/false

    Returns boolean

  • cleanText(text: string): string
  • Returns a string without " ` " or " @ "

    Parameters

    • text: string

    Returns string

  • confirmation(message: Message<boolean>, author: any, validReactions?: any[], time?: number): Promise<string>
  • Parameters

    • message: Message<boolean>
    • author: any
    • validReactions: any[] = []
    • time: number = 60000

    Returns Promise<string>

  • daysAgo(date: Date): string
  • Parameters

    • date: Date

    Returns string

  • doublestruck(word: string): Promise<string>
  • Dobulestruck words

    Parameters

    • word: string

    Returns Promise<string>

  • emojify(str: string): string
  • Emoji-ify a string

    Parameters

    • str: string

    Returns string

  • formatUpper(str: string): string
  • Edit the first letter of the string to uppercase

    Parameters

    • str: string

    Returns string

  • fractur(word: string): Promise<string>
  • Sends a 8ball response

    Parameters

    • word: string

    Returns Promise<string>

  • Generate a random password

    Parameters

    Returns string

  • getLilaseDownloads(): Promise<number>
  • name

    getLilaseDownloads

    description

    Get the number of downloads

    Returns Promise<number>

  • Sends an embed of reddit

    Parameters

    • sub: string

    Returns Promise<RedditObject>

  • obama(): void
  • Obama!

    Returns void

  • parseMS(val: number, options?: msOptions): string
  • Parameters

    • val: number
    • Optional options: msOptions

    Returns string

  • parseString(val: string): number
  • Parameters

    • val: string

    Returns number

  • randint(max: number, min: number): number
  • Returns a random number in range

    Parameters

    • max: number
    • min: number

    Returns number

  • random8ball(): Promise<string>
  • Sends a 8ball response

    Returns Promise<string>

  • randomID(length: number): string
  • Returns a random ID/String

    Parameters

    • length: number

    Returns string

  • round(value: number, decimals: number): number
  • Rounds a number to a specified number of decimal places.

    Parameters

    • value: number
    • decimals: number

    Returns number

  • selectRandom(array?: any[]): any
  • Select a random element of the array

    Parameters

    • array: any[] = []

    Returns any

  • sleep(ms: number): void
  • Parameters

    • ms: number

    Returns void

  • superscript(word: string): Promise<string>
  • Sends a superscript-ed word

    Parameters

    • word: string

    Returns Promise<string>

  • timer(timestamp: number): string
  • Parameters

    • timestamp: number

    Returns string

  • trimArray(arr?: any[]): string
  • Trim an array from 10th elemnt

    Parameters

    • arr: any[] = []

    Returns string

Generated using TypeDoc