New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dscbots.js

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dscbots.js

> ### Getting Started > First you wanna make sure you have the package installed, > If you don't then do `npm i dscbots.js` in your console! > After you did that it should be installed!

  • 1.0.2
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DscBots.js



Getting Started

First you wanna make sure you have the package installed,
If you don't then do npm i dscbots.js in your console!
After you did that it should be installed!

Start by putting this in your index.js.
For a auth token you can head to Dscbots and head to your bot and press edit!

const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);

Now for putting your bots guild amount onto the site you have to do this!

const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);

dscbots.post('serverCount', {
    GuildCount: <client>.guilds.cache.size
}); 
// Output - Successfully put the guild amount to your bot!

Wanna see if someone voted? Well you can!

const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);

async function checkVote(user) {
 const voteData = await dscbots.voted(user);

 if (voteData.voted == false) {
    return "Not voted!";
 } else if (voteData.voted == true) {
    return `${voteData.username} has voted for your bot!`
 }
}

checkVote('<Discord UserId>')

Wanna see the vote amount of a bot?

const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);

dscbots.fetch('votes', {
    BotID: '<Bot ID>'
})
// output - I fetched ${votes} votes from ${username}

Or maybe if the bot is certified!

const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);

dscbots.fetch('certificate', {
    BotID: '<Bot ID>'
});
// output - The bot ${username} is {certified}

This was made by Dscbots

Version v.1.0.2

Any version under version v1.0.2 doesn't work anymore!

FAQs

Package last updated on 07 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc