Skip to content

Latest commit

Β 

History

History
230 lines (216 loc) Β· 6.78 KB

readme.md

File metadata and controls

230 lines (216 loc) Β· 6.78 KB

Cryptons API

npm version Build Status Dependency Status

NPM Info

For errors and questions you can join our support server

  • Cryptons API Node.JS Client
  • More Functions Will be added soon

What is this package? what

  • A fun npm package to use Cryptons API and many more utilities!

Features install

  • πŸ§‘ Beginner friendly
  • πŸŽ‰ Easy to use
  • ✨ Simple
  • πŸ”˜ Updates Frquently!

Installation install

From NPM:

npm install cryptons-api

Configuration config

You will need your Cryptons API key to use cryptons-api.

Keys can be found at: https://discord.gg/vUYvswzwMH

Usage hmmm

  • Covid Command (For Discord)
const { Covid } = require('cryptons-api')
//world
new Covid({
    message: message,
    country: 'world',
    title: title,
    description: 'Covid Cases',
    color: 'RANDOM',
    footer: 'Made By Cryptons API NPM',
    addFieldOption : true || false
})
// covid
new Covid({
    message: message,
    country: 'india',
    title: title,
    description: 'Covid Cases',
    color: 'RANDOM',
    footer: 'Made By Cryptons API NPM',
    addFieldOption : true || false
})
  • IMDB For Discord.js
const { IMDB } = require('cryptons-api')
new IMDB({
    message: message,
    key: 'IMDB_KEY',
    movie: 'Movie Name'
})
  • Token Utils
const { keyUtils } = require('cryptons-api')
const keyutil = new keyUtils({
    token: 'Cryptons api key'
})
// returns your cryptons api token
keyutil.getKey()

// checks your token
let check = keyutil.checkKey()
console.log(check)
  • Logo Game for Discord.js
const { LogoGame } = require('cryptons-api')
new LogoGame({
    token: 'Cryptons-Token',
    message: message
})
  • Insult
const { insult } = require('cryptons-api')
insult(r =>{
    console.log(r)
})
  • Random Username generator
const { randomusername } = require('cryptons-api')
randomusername(r =>{
    console.log(r)
})
  • Script
const { script }  = require('cryptons-api')
script(r =>{
    console.log(r)
})
  • nameserver
const { namserver } = require('cryptons-api')
nameserver('https://cryptons.ga' , r =>{
    console.log(r)
})
  • Minesweeper For Discord.js
const { MS } = require('cryptons-api')
const ms = new MS({
    size: 20,
    bomb: 10
})
ms.output()
  • Covid and Covid World
// Covid For a country
const { covid } = require('cryptons-api')
covid((country ,cases , recov , death , dischargerate , deathrate , closed , flaglink) =>{ 
    console.log(country  + cases + recov +  death + dischargerate + deathrate + closed + flaglink )
})
//Covid World
const { covidWorld } = require('cryptons-api')
covidWorld((cases , deaths, recov , active, close,mild, critical)=>{
    console.log(cases + deaths + recov +  active + close + mild + critical)
})
  • Discord User Info
const { discorduser } = require('cryptons-api')
discorduser(discord_id , (username , avatar , disriminator , banner , banner_color , accent_color)=>{
    console.log(username + avatar + disriminator + banner + banner_color + accent_color)
    })
  • Stats
const { stats } = require('cryptons-api')
stats((node, platform , cpu , arch , memuse) =>{
    console.log(node + platform + cpu + arch + memuse)
})
  • Random Programing language name
const { script } = require('cryptons-api')
script(r =>{
    console.log(r)
})
  • Meme
const { meme } = require('cryptons-api')
meme((img , title , upvote , downvote , comments , url)=>{
    console.log(`image: ${img} , title: ${title} , upvotes: ${upvotes} , downvotes: ${downvotes} , comments: ${comments} , url: ${url}`)
})
  • Clyde
const { clyde } = require('cryptons-api')
const a = new clyde({
    text: something_here
})
message.channel.send(a)
  • Same Usage as Clyde Captcha cti mocktext pablo pabloeveryone
  • Two Buttons
const { twobuttons } = require('cryptons-api')
const a = new twobuttons({
    btn1: something_here,
    btn2: something_here_as_well,
})

Developers πŸ‘¨β€πŸ’»

Old Client

  • It will be not updated
const api = require('cryptons-api')
const crypton = new api.client({
    token:'key here (optional)'
    })
////////////////////////////////
crypton.tokencheck(res =>{console.log(res)})
////////////////////////////////
crypton.stats((node , platform , cpu , arch , memuse)=>{console.log(`node: ${node}, platform: ${platform} , arch: ${arch} , memuse: ${memuse}`)})
////////////////////////////////
crypton.meme((img , title , upvote , downvote , comments , url)=>{
    console.log(`image: ${img} , title: ${title} , upvotes: ${upvotes} , downvotes: ${downvotes} , comments: ${comments} , url: ${url}`)
})
////////////////////////////////
crypton.discorduser(discord_id , (username , avatar , disriminator , banner , banner_color , accent_color)=>{console.log(all things)})
////////////////////////////////
crypton.insult(insult =>{console.log(insult)})
////////////////////////////////
crypton.nameservers(domain , result=>{console.log(result)})
////////////////////////////////
crypton.userbanner(discord_id , res=>{console.log(res)})
////////////////////////////////
crypton.covidworld((cases , deaths, recovered , active, closedcases,mildcases, criticalcases)=>{console.log(cases + deaths + recovered + active + closedcases + mildcases + criticalcases)})
////////////////////////////////
crypton.covid((country ,cases , recov , death , dischargerate , deathrate , closed , flaglink) => {console.log(country + cases + recov + death + dischargerate + deathrate + closed + flaglink)})