🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

turtleland-botlist-api

Package Overview
Dependencies
Maintainers
1
Versions
1
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

turtleland-botlist-api

Turtleland Bot List's API service.

unpublished
latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Turtleland Botlist

EN:

With this module, you can post your servers to the https://bots.turtleland.cf/bot/<your bot's id> page. Also, you can fetch voted members to your bot.

Usage (For Typescript)

import turtleland_api from "turtleland-botlist-api";
const api = new turtleland_api("<your bot's api key>")

/* discord bot stuff */

client.on("ready", async() => {
	const hasVoted: boolean = await api.hasVoted("<user>")
	console.log(hasVoted)
	/* if user voted, it gives you true; if not, it gives false. */
	await api.postGuilds(client.guilds)
	/* it's logging a message to the console when response is successfull. */
})

Usage (For Javascript)

const turtleland_api = require("turtleland-botlist-api");
const api = new turtleland_api("<your bot's api key>")

/* discord bot stuff */

client.on("ready", async() => {
	const hasVoted = await api.hasVoted("<user>")
	console.log(hasVoted)
	/* if user voted, it gives you true; if not, it gives false. */
	await api.postGuilds(client.guilds)
	/* it's logging a message to the console when response is successfull. */
})

TR:

Bu modül ile birlikte botunuzun sunucu sayısını https://bots.turtleland.cf/bot/<bot'unun idsi> sayfasına yollayabilirsin. Ayrıca, botuna kullanıcıların oy verip vermediğini sorgulayabilirsin.

Kullanım (Typescript için)

import turtleland_api from "turtleland-botlist-api";
const api = new turtleland_api("<botunun api key'i>")

/* discord bot şeyleri */

client.on("ready", async() => {
	const hasVoted: boolean = await api.hasVoted("<user>")
	console.log(hasVoted)
	/* eğer kullanıcı oy verdiyse size true değerini verir, vermediyse false değerini verir */
	await api.postGuilds(client.guilds)
	/* işlem başarılı olduğunda konsola bir mesaj atar. */
})

Kullanım (Javascript için)

const turtleland_api = require("turtleland-botlist-api");
const api = new turtleland_api("<botunun api key'i>")

/* discord bot şeyleri */

client.on("ready", async() => {
	const hasVoted = await api.hasVoted("<user>")
	console.log(hasVoted)
	/* eğer kullanıcı oy verdiyse size true değerini verir, vermediyse false değerini verir */
	await api.postGuilds(client.guilds)
	/* işlem başarılı olduğunda konsola bir mesaj atar. */
})

FAQs

Package last updated on 13 Jan 2021

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