cordbot-api
v1.3.3
Published
Uma api para seu bot para discord!
Downloads
21
Readme
CordBot-API
Uma api simples! feita de open-source com funções incriveis!
📝 Conteúdos
Installation
Instale Node.js. e Depois:
$ npm install cordbot-api
🛠 Como Utilizar
- EmbedPages - Crie facilmente paginas de reações.
- Palavras Aleatórias - Esta função pega palavras aleatorias.
✈ Importando
// Usando node.js `require()`
const cord = require("cordlist-api");
// Usando ES6 imports
import cord from "cordlist-api";
Pagina por Reações
Exemplo:
// Exemplo de verificar quanto tempo a conta do membro foi criada.
// Importe o pacote
const cord = require("cordbot-api");
const ReactPages = cord.EmbedPages;
const { MessageEmbed } = require("discord.js");
const embed1 = new MessageEmbed().setTitle("1");
const embed2 = new MessageEmbed().setTitle("2");
const paginas = [embed1, embed2];
const textPageChange = true; // Altere páginas ao enviar números.
const emojis = ["⏪", "⏩"];
const tempo = 30000;
ReactPages(msg, paginas, textPageChange, emojis, tempo);
Palavras Aleatorias
Exemplo:
const cord = require('cordbot-api');
const words = cord.words(1) // Dentro dos parênteses coloque a quantidade de palavras
message.channel.send(words) // Vai gerar apenas 1 Palavra