ksoft.js
Official API Wrapper for KSoft API, written in Node.js
Getting Started
installing...
npm install ksoft.js --save
Using the api examples
const Ksoft = require("ksoft.js");
const ksoft = new Ksoft("YourBrilliantToken")
ksoft.images.getRandomMeme().then(result =>{
})
ksoft.images.getTags().then(result => {
})
ksoft.images.getRandomImage(tag).then(result=>{
})
let banObject = {
user: "123456789741"
mod: "123456789742"
user_name: "SomeBadUsername"
user_discriminator: "#1234"
reason: "Your descriptive reason"
proof: "Your proof"
appeal_possible: true/false
}
ksoft.bans.add(banObject)
ksoft.bans.getBanInfo(userID).then(result => {
})
ksoft.bans.check(userID).then(result => {
})
ksoft.kumo.search(query,fast,more,mapZoom,includeMap).then(result => {
})
ksoft.kumo.getSimpleWeather(reportType,q,units,lang,icons).then(result => {
})
ksoft.lyrics.search(q,textOnly,limit).then(result => {
})
ksoft.lyrics.getArtistById(id).then(result => {
})
All functions
Images Api
ksoft.images.getRandomMeme()
ksoft.images.getRandomImage(tag)
ksoft.images.getTags()
ksoft.images.searchTags(tag)
ksoft.images.getImageFromId(snowflake)
ksoft.images.getRandomWikiHow(nsfw)
ksoft.images.getRandomCutePicture()
ksoft.images.getRandomNSFW()
ksoft.images.getRandomReddit(subReddit,removeNSFW,span)
Bans Api
ksoft.bans.add(banData)
ksoft.bans.getBanInfo(userID)
ksoft.bans.check(userID)
ksoft.bans.list(page,perPage)
ksoft.bans.getUpdate(epochDate)
Kumo Api
ksoft.kumo.search(q,fast,more,mapZoom,includeMap)
ksoft.kumo.getSimpleWeather(reportType,q,units,lang,icons)
ksoft.kumo.geoip(ip)
Lyrics Api
ksoft.lyrics.search(q,textOnly,limit)
ksoft.lyrics.getArtistById(id)
ksoft.lyrics.getAlbumById(id)
ksoft.lyrics.getTrackById(id)
Special thanks to sdf for helping me troubleshoot some stuff :)