Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

[WIP] Adicionando a API status #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SergioGlorias
Copy link
Member

@SergioGlorias SergioGlorias commented Dec 10, 2021

Este Pull Resquet trata para adicionar ao modulo acesso mais rápido para os usuários a API de Status da Discloud

Notas extras:

  • O usuário <Morty/>#2925 (665200472596152341) forneceu um codigo base para usar como base

Exemplos de como o codigo:

  • Sem promisse:
const DiscloudAPI = require("discloud-status");

const status = new DiscloudAPI.APIstatus("Your API Key");

// Get the Bot info from the API
status.getBot("Your Bot ID").then(bot => {
    console.log(bot);
});

// Get the User info from the API
status.getUser().then(user => {
    console.log(user);
});

@pedroricardo pedroricardo marked this pull request as ready for review December 10, 2021 22:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants