2023-04-20 01:22:43 +02:00
<!DOCTYPE html> < html class = "default" > < head > < meta charSet = "utf-8" / > < meta http-equiv = "x-ua-compatible" content = "IE=edge" / > < title > cath< / title > < meta name = "description" content = "Documentation for cath" / > < meta name = "viewport" content = "width=device-width, initial-scale=1" / > < link rel = "stylesheet" href = "assets/style.css" / > < link rel = "stylesheet" href = "assets/highlight.css" / > < script async src = "assets/search.js" id = "search-script" > < / script > < / head > < body > < script > document . body . classList . add ( localStorage . getItem ( "tsd-theme" ) || "os" ) < / script > < header > < div class = "tsd-page-toolbar" > < div class = "container" > < div class = "table-wrap" > < div class = "table-cell" id = "tsd-search" data-base = "." > < div class = "field" > < label for = "tsd-search-field" class = "tsd-widget search no-caption" > Search< / label > < input type = "text" id = "tsd-search-field" / > < / div > < ul class = "results" > < li class = "state loading" > Preparing search index...< / li > < li class = "state failure" > The search index is not available< / li > < / ul > < a href = "index.html" class = "title" > cath< / a > < / div > < div class = "table-cell" id = "tsd-widgets" > < div id = "tsd-filter" > < a href = "#" class = "tsd-widget options no-caption" data-toggle = "options" > Options< / a > < div class = "tsd-filter-group" > < div class = "tsd-select" id = "tsd-filter-visibility" > < span class = "tsd-select-label" > All< / span > < ul class = "tsd-select-list" > < li data-value = "public" > Public< / li > < li data-value = "protected" > Public/Protected< / li > < li data-value = "private" class = "selected" > All< / li > < / ul > < / div > < input type = "checkbox" id = "tsd-filter-inherited" checked / > < label class = "tsd-widget" for = "tsd-filter-inherited" > Inherited< / label > < input type = "checkbox" id = "tsd-filter-externals" checked / > < label class = "tsd-widget" for = "tsd-filter-externals" > Externals< / label > < / div > < / div > < a href = "#" class = "tsd-widget menu no-caption" data-toggle = "menu" > Menu< / a > < / div > < / div > < / div > < / div > < div class = "tsd-page-title" > < div class = "container" > < h1 > cath < / h1 > < / div > < / div > < / header > < div class = "container container-main" > < div class = "row" > < div class = "col-8 col-content" > < div class = "tsd-panel tsd-typography" > < h1 align = "center" > CATH < / h1 >
2021-09-19 22:43:08 +02:00
<!-- header -->
< p align = "center" >
< img src = "https://media.discordapp.net/attachments/842014909264953354/867806346593042483/Cath-temp-banner.png?width=1244&height=415" >
< br >
2021-09-20 09:54:25 +02:00
< a href = "https://npmjs.org/package/cath" target = "_blank" > < img alt = 'Version' src = "https://img.shields.io/github/package-json/v/night0721/cath?style=for-the-badge&color=555555&labelColor=02023a" > < / a > < a href = "https://npmjs.org/package/cath" target = "_blank" > < img alt = 'Download' src = "https://img.shields.io/npm/dt/cath?style=for-the-badge&color=02023a" > < / a >
2021-09-30 01:00:08 +02:00
< a href = "https://github.com/night0721/cath/blob/main/LICENSE" target = "_blank" > < img alt = 'Package' src = "https://img.shields.io/npm/l/cath?color=02023a&style=for-the-badge" > < / a >
2021-09-19 22:43:08 +02:00
< a href = "https://github.com/night0721/cath" target = "_blank" > < img alt = 'Repo Stars' src = "https://img.shields.io/github/stars/night0721/cath?logo=github&color=555555&labelColor=02023a&style=for-the-badge" > < / a >
< a href = "https://ko-fi.com/I2I35XISJ" target = "_blank" > < img alt = 'Kofi' src = "https://img.shields.io/static/v1?label=Support%20Us&message=KO.FI&color=ff5e5b&logo=kofi&logoColor=white&style=for-the-badge&scale=1.4" > < / a >
< br >
< a href = "https://rebrand.ly/cathSupport" > < img src = "https://discordapp.com/api/guilds/718762019586572341/widget.png?style=banner2" alt = "Support Server" / > < / a >
< br >
< a href = "https://npmjs.org/package/cath" target = "_blank" > < img alt = 'Node Package' src = "https://nodei.co/npm/cath.png" > < / a >
< / p >
< p > < strong > Cath< / strong > is a powerful < a href = "https://nodejs.org" > Node.js< / a > module that can easily interact and get data from the Cath API
If you like this package, feel free to < img src = "https://discord.com/assets/141d49436743034a59dec6bd5618675d.svg" width = "16" > < strong > Star< / strong > and < strong > fork< / strong > this repository.< br > < br > < / p >
< a href = "#install-the-package-✔" id = "install-the-package-✔" style = "color: inherit; text-decoration: none;" >
< h1 > Install the package ✔< / h1 >
< / a >
< p > Download from npm< / p >
2021-09-30 00:45:22 +02:00
< pre > < code class = "language-powershell" > < span class = "hl-0" > npm install cath< / span >
2021-09-19 22:43:08 +02:00
< / code > < / pre >
< p > Download from yarn< / p >
2021-09-30 00:45:22 +02:00
< pre > < code class = "language-powershell" > < span class = "hl-0" > yarn add cath< / span >
2021-09-19 22:43:08 +02:00
< / code > < / pre >
< a href = "#examples" id = "examples" style = "color: inherit; text-decoration: none;" >
< h2 > Examples< / h2 >
< / a >
< a href = "#launch-of-the-module" id = "launch-of-the-module" style = "color: inherit; text-decoration: none;" >
< h3 > Launch of the module< / h3 >
< / a >
2021-09-30 00:45:22 +02:00
< pre > < code class = "language-js" > < span class = "hl-1" > const< / span > < span class = "hl-0" > < / span > < span class = "hl-2" > cath< / span > < span class = "hl-0" > = < / span > < span class = "hl-3" > require< / span > < span class = "hl-0" > (< / span > < span class = "hl-4" > " cath" < / span > < span class = "hl-0" > );< / span > < br / > < br / > < span class = "hl-1" > const< / span > < span class = "hl-0" > < / span > < span class = "hl-2" > reddit_data< / span > < span class = "hl-0" > = < / span > < span class = "hl-5" > await< / span > < span class = "hl-0" > < / span > < span class = "hl-6" > cath< / span > < span class = "hl-0" > .< / span > < span class = "hl-3" > getreddit< / span > < span class = "hl-0" > (< / span > < span class = "hl-4" > " meme" < / span > < span class = "hl-0" > );< / span > < br / > < span class = "hl-6" > console< / span > < span class = "hl-0" > .< / span > < span class = "hl-3" > log< / span > < span class = "hl-0" > (< / span > < span class = "hl-6" > reddit_data< / span > < span class = "hl-0" > ); < / span > < span class = "hl-7" > // returns an object< / span > < br / > < br / > < span class = "hl-1" > const< / span > < span class = "hl-0" > < / span > < span class = "hl-2" > answer< / span > < span class = "hl-0" > = < / span > < span class = "hl-5" > await< / span > < span class = "hl-0" > < / span > < span class = "hl-6" > cath< / span > < span class = "hl-0" > .< / span > < span class = "hl-3" > random8ball< / span > < span class = "hl-0" > ();< / span > < br / > < span class = "hl-6" > console< / span > < span class = "hl-0" > .< / span > < span class = "hl-3" > log< / span > < span class = "hl-0" > (< / span > < span class = "hl-6" > answer< / span > < span class = "hl-0" > ); < / span > < span class = "hl-7" > // a random answer from 8ball< / span >
2021-09-19 22:43:08 +02:00
< / code > < / pre >
< a href = "#support-feature-request-amp-bug-reports" id = "support-feature-request-amp-bug-reports" style = "color: inherit; text-decoration: none;" >
< h1 > Support, Feature Request & Bug Reports< / h1 >
< / a >
< a href = "#-support-amp-feature-request" id = "-support-amp-feature-request" style = "color: inherit; text-decoration: none;" >
< h2 > < img src = "https://cdn.discordapp.com/emojis/867093614403256350.png?v=1" width = 18 > Support & Feature Request< / h2 >
< / a >
< p > Join the official < a href = "https://discord.gg/SbQHChmGcp" > Support Server< / a > on Discord & we will be happy to assist you. < br >
To Request new features contact us on Discord using the support server.< / p >
< a href = "#-report-bugs" id = "-report-bugs" style = "color: inherit; text-decoration: none;" >
< h2 > < img src = "https://cdn.discordapp.com/emojis/867093601962950666.png?v=1" width = "18" > Report Bugs< / h2 >
< / a >
< p > You can report bugs or issues by opening a issue in this repository. Alternatevely you can also contact us on Discord using the support server.< / p >
< p align = "center" >
< a href = "https://rebrand.ly/cathSupport" target = "_blank" > < img src = "https://discordapp.com/api/guilds/718762019586572341/widget.png?style=banner1" > < / a >
< / p >
2023-04-30 20:01:45 +02:00
< / div > < / div > < div class = "col-4 col-menu menu-sticky-wrap menu-highlight" > < nav class = "tsd-navigation primary" > < ul > < li class = "current" > < a href = "modules.html" > Exports< / a > < / li > < / ul > < / nav > < nav class = "tsd-navigation secondary menu-sticky" > < ul > < li class = "tsd-kind-class" > < a href = "classes/CODMClient.html" class = "tsd-kind-icon" > CODMClient< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/CodeClient.html" class = "tsd-kind-icon" > Code< wbr / > Client< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/GiveawaysClient.html" class = "tsd-kind-icon" > Giveaways< wbr / > Client< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/ImageClient.html" class = "tsd-kind-icon" > Image< wbr / > Client< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/Pagination.html" class = "tsd-kind-icon" > Pagination< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/StarboardClient.html" class = "tsd-kind-icon" > Starboard< wbr / > Client< / a > < / li > < li class = "tsd-kind-class" > < a href = "classes/URLClient.html" class = "tsd-kind-icon" > URLClient< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/Applications.html" class = "tsd-kind-icon" > Applications< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/CODMClientOptions.html" class = "tsd-kind-icon" > CODMClient< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/CodeData.html" class = "tsd-kind-icon" > Code< wbr / > Data< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/DefaultGiveawayMessages.html" class = "tsd-kind-icon" > Default< wbr / > Giveaway< wbr / > Messages< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/DiscordActivityOptions.html" class = "tsd-kind-icon" > Discord< wbr / > Activity< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/GeneratePasswordOptions.html" class = "tsd-kind-icon" > Generate< wbr / > Password< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/GiveawaySchema.html" class = "tsd-kind-icon" > Giveaway< wbr / > Schema< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/GiveawaysClientOptions.html" class = "tsd-kind-icon" > Giveaways< wbr / > Client< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/PerkData.html" class = "tsd-kind-icon" > Perk< wbr / > Data< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/RedditObject.html" class = "tsd-kind-icon" > Reddit< wbr / > Object< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/ScorestreakData.html" class = "tsd-kind-icon" > Scorestreak< wbr / > Data< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/StarboardClientOptions.html" class = "tsd-kind-icon" > Starboard< wbr / > Client< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/StarboardGuild.html" class = "tsd-kind-icon" > Starboard< wbr / > Guild< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/StarboardGuildOptions.html" class = "tsd-kind-icon" > Starboard< wbr / > Guild< wbr / > Options< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/URLData.html" class = "tsd-kind-icon" > URLData< / a > < / li > < li class = "tsd-kind-interface" > < a href = "interfaces/starMessageData.html" class = "tsd-kind-icon" > star< wbr / > Message< wbr / > Data< / a > < / li > < li class = "tsd-kind-variable" > < a href = "modules.html#config" class = "tsd-kind-icon" > config< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#DiscordActivity" class = "tsd-kind-icon" > Discord< wbr / > Activity< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#HHMMSS" class = "tsd-kind-icon" > HHMMSS< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#bool" class = "tsd-kind-icon" > bool< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#cleanText" class = "tsd-kind-icon" > clean< wbr / > Text< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#confirmation" class = "tsd-kind-icon" > confirmation< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#daysAgo" class = "tsd-kind-icon" > days< wbr / > Ago< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#doublestruck" class = "tsd-kind-icon" > doublestruck< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#emojify" class = "tsd-kind-icon" > emojify< / a > < / li > < li class = "tsd-kind-function" > < a href = "modules.html#formatUpper" class = "tsd-kind-icon" > format< wbr / > Upp