🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

stoneclane.js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

stoneclane.js

It is a module for stoneclane.xyz.

unpublished
latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
1
Created
Source

npm install
Do you need my help? Visit our Discord server.

Installation

npm i stoneclane.js --save
yarn add stoneclane.js

Usage

const Stoneclane = require('./stoneclane.index');
const dbl = new Stoneclane("Stoneclane Bot Token");
dbl.on("ready", (bot) => {
    console.log(`Bot named ${bot.username} successfully finded on Stoneclane.`)
    dbl.checkVote("909486686986178610").then(value => console.log("Vote Control: "+ value))
    /*
        let guildCount = 1234;
        let shardCount = 5;
        dbl.stats(guildCount, shardCount, () => console.log("Stats updated on Stoneclane."));
    */
})
/*
    Get with Bot: 
    dbl.on("vote", ({ user, bot }) => {
        console.log(`${user.username} voted ${bot.username}`)
    })
*/
dbl.on("vote", ({ user }) => {
    console.log(`${user.username} voted.`)
})

Detailed

Define Module

const Stoneclane = require('./stoneclane.index');
const dbl = new Stoneclane("Stoneclane Bot Token");

Let's add an event to see if it works.

dbl.on("ready", (bot) => {
    console.log(`Bot named ${bot.username} successfully finded on Stoneclane.`)
})
// => Bot named GiveAways successfully finded on Stoneclane.

Let's update bot data

dbl.on("ready", (bot) => {
    console.log(`Bot named ${bot.username} successfully finded on Stoneclane.`)
    let guildCount = 1234;
    let shardCount = 5;
    dbl.stats(guildCount, shardCount, () => console.log("Stats updated on Stoneclane."));
})
// => Bot named GiveAways successfully finded on Stoneclane.
// => Stats updated on Stoneclane.

Let's check if a user has voted.

dbl.on("ready", (bot) => {
    console.log(`Bot named ${bot.username} successfully finded on Stoneclane.`)
    dbl.checkVote("909486686986178610").then(value => console.log("Vote Control: "+ value))
    /*
        let guildCount = 1234;
        let shardCount = 5;
        dbl.stats(guildCount, shardCount, () => console.log("Stats updated on Stoneclane."));
    */
})
// => Bot named GiveAways successfully finded on Stoneclane.
// => Vote Control: false

Let's check if there is a user who voted for our bot instantly.

dbl.on("vote", ({ user }) => {
    console.log(`${user.username} voted.`)
})
// => JanjyTapYT voted.
// WITH BOT
dbl.on("vote", ({ user, bot }) => {
    console.log(`${user.username} voted ${bot.username}`)
})
// => JanjyTapYT voted GiveAways.
Developed with ❤️ by Stoneclane Development

Keywords

dbl

FAQs

Package last updated on 29 Apr 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