
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
cheweybot-api-wrapper
Advanced tools
A simply wrapper for https://api.chewey-bot.ga api
npm i cheweybot-api-wrapper
!role-me api-user
!claim-api-key
If you couldn't DM not the bot please check your privacy settings
let cheweybotapi = require('cheweybot-api-wrapper')
cheweybotapi.login(Token); //It must be once in all your code
cheweybotapi.image.get('cat').then((res)=>{
console.log(res)
}).catch((err)=>{
console.log(err)
})
/*[ 'space',
'cat',
'dog',
'birb',
'nature',
'fantasy-art',
'plane',
'otter',
'rabbit',
'snake',
'car',
'turtle',
'duck',
'panda',
'wolf',
'fox' ]
*/
api.mc('mc.hypixel.net').then((res)=>{
console.log(res)
}).catch((err)=>{
console.log(err)
})
api.analytics.init(client,'236627494764150784')
or
let cheweybotapi = require('cheweybot-api-wrapper')
cheweybotapi.image.get('cat', TOKEN).then((res)=>{
console.log(res)
}).catch((err)=>{
console.log(err)
})
api.mc('mc.hypixel.net', TOKEN).then((res)=>{
console.log(res)
}).catch((err)=>{
console.log(err)
})
api.analytics.init(client,'236627494764150784', TOKEN)
Call this module
let cheweybotapi = require('cheweybot-api-wrapper')
Text between []
is not require
All endpoints respond
//Image and MC
{data:'your-image'}
Exemple Error:
Noendpointfind: {
name: 'Noendpointfind', //Name of this error
message: 'No endpoint find', // description of this error
status: '0x00404' //Error code (for all error codes, it is below)
}
space,cat,dog,bird,nature,fantasy-art,plane,otter,rabbit,snake,car,turtle,duck,panda,wolf,fox
Thanks to Chewey#1635 for accepting the creation of this module
Error codes | Signification |
---|---|
0x00001 | No token specified |
0x00002 | No endpoint specified |
0x00403 | Incorrect login |
0x02403 | Incorrect lib |
0x00404 | No endpoint find |
0x01404 | No IP specified |
0x02404 | No lib specified (discord.js or eris) |
0x03404 | No owner ID specified |
FAQs
A simply wrapper for cheweybot-api
We found that cheweybot-api-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.