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

magma-list

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magma-list

magmalist.tk official module

1.9.1
latest
npm
Version published
Weekly downloads
34
3300%
Maintainers
1
Weekly downloads
 
Created
Source

magmalist

Join our discord
NPM: npmjs.com/package/magma-list

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i magma-list

Define Module & Client

const Discord = require("discord.js");
const client = new Discord.Client();
const magmalist = require("magma-list");
const dbl = new magmalist("TOKEN-HERE");

client.login("MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs");

Certificate Application

dbl.certificateApplication("Bla bla bla bla bla bla bla bla bla bla bla bla...", () => {
    console.log("Certificate successfully applied.");
})

Stats Posting

/*
    With Shard Posting
    let shardCount = 10;
    dbl.post(client.guilds.cache.size, shardCount, () => {
        console.log('Stats posted.')
    })
*/
dbl.post(client.guilds.cache.size, () => {
    console.log('Stats posted.')
})

Vote Checking

dbl.checkVote("userId").then((value) => {
    if(value === 1) {
        console.log("User voted.")
    } else {
        console.log("User not voted.")
    }
})

All Operations

const vc = require(magma-list');
const { Client } = require("discord.js");
const client = new Client();
const dbl = new vc("magmalist-Bot-Token-Here")

dbl.on("ready", () => {
    console.log('magmalist ready!')
})

/*
    With Shard Posting
    let shardCount = 10;
    dbl.post(client.guilds.cache.size, shardCount, () => {
        console.log('Stats posted.')
    })
*/
dbl.post(client.guilds.cache.size, () => {
    console.log('Stats posted.')
})

dbl.checkVote("userId").then((value) => {
    if(value === 1) {
        console.log("User voted.")
    } else {
        console.log("User not voted.")
    }
})

dbl.certificateApplication("Bla bla bla bla bla bla bla bla bla bla bla bla...", () => {
    console.log("Certificate successfully applied.");
})

client.on("ready", () => {
    console.log("Logged as in "+client.user.tag)
})

client.login("MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs")

Keywords

bot

FAQs

Package last updated on 16 Jul 2023

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