# healdbot

> Api ufficiale di Heald Bot

Latest version **1.0.8** (published 2021-08-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install healdbot
pnpm add healdbot
yarn add healdbot
bun add healdbot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-08-16 |
| First published | 2021-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | healdbot |
| Maintainers | heald-bot |
| Keywords | bot, list |

## Links

- npm: https://www.npmjs.com/package/healdbot
- npm.io page: https://npm.io/package/healdbot

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 1.0.8 (latest) — 2021-08-16
- 1.0.7 — 2021-08-15
- 1.0.6 — 2021-08-15
- 1.0.5 — 2021-08-15
- 1.0.4 — 2021-08-15
- 1.0.3 — 2021-08-15
- 1.0.2 — 2021-08-15
- 1.0.1 — 2021-08-15
- 1.0.0 — 2021-08-13

## README

- `npm i healdbot`

# Define Module & Client
```js
const Discord = require("discord.js");
const client = new Discord.Client();
const healdbot = require("healdbot");
const votes = new healdbot("TOKEN-HERE", client);

client.login("TOKEN");
```

# Server Count & Shard Count Posting
```js
client.on("ready", async () => {
  votes.serverCount();
  /* 
   Invia ai server di Heald Bot i servers in cui si trova il bot.
  */

});
```

# Vote Checking
```js

//hasVote in manutenzione!
let hasVote = await votes.hasVoted(""); // -> user ID
  if(hasVote === true) {
      console.log("Questo utente ha votato il tuo bot.")
    } else {
      console.log("Questo utente non ha votato il tuo bot.")
  }
// -> Vote info
//hasVote in manutenzione!
```


```js
let botFind = await votes.search("");
console.log(botFind.username) 
```
 

 # Embed info
```js
// Puoi creare anche dei embed dove esce tutte le info di healdbot come quanti voti ha il tuo bot

client.on('message', async message => {
	if (message.content.startsWith(`${prefix}healdbot`)) {
                        const args = message.content.trim().split(/ +/g);
                 if(!args[1]) {
                         const id = new Discord.MessageEmbed()
                         .setTitle("Metti id di un bot che si trova su heald bot")
                         .setColor("RED")
                         return message.channel.send(id)
                 }
                let serverheald = await votes.search(`${args[1]}`);
                const infohealdbot = new Discord.MessageEmbed()
                .setTitle(`Info di ${serverheald.username} su heald bot`)
                .setDescription(`Bot name: ${serverheald.username} \n voti su healdbot: ${serverheald.votes} \n i tag del bot: ${serverheald.tags} \n propretario del bot: <@${serverheald.ownerID}> \n Sito del bot: ${serverheald.website}`)
                .setImage(serverheald.avatar)
                .setColor("RANDOM")
                message.channel.send(infohealdbot) 
        }
});

// qui sotto trovi tutte le funzioni che puoi mettere dopo serverheald.
```

# Tutte le funzioni dopo serverheald.
```js
// avatar
// botID
// username
// discrim
// shortDesc
// prefix
// votes
// ownerID
// coowner
// tags
// logDesc
// certificate
// support
// website
// github
```

---
_Source: https://npm.io/package/healdbot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
