Skip to content

dbleu/php-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-botlist.eu api


Welcome 👋‹
This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api. This package is made by KeksDev.

Install

composer require dbleu/php-libary

Getting started

<?php
use dbleu\Main;

require_once __DIR__ . '/vendor/autoload.php';

// Init Libary
$api = new Main("<API Token>");

// Get an array with all dates when the bot was voted for
$votes = $api->getVotes();
var_dump($votes);

// Get the current information about the bot
$information = $api->getBotData();
var_dump($information);

// Update the server count
$newCount = 1;
$count = $api->updateGuildCount($newCount);
var_dump($count);

getVotes()

Parameter Type
none none

Array


getBotData()

Parameter Type
none none

Object


updateGuildCount(serverCount)

Parameter Type
updateGuildCount Integer
{
  "updated": Array,
  "bot": Object
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages