php package

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

udateGuildCount(serverCount)

Parameter

Type

updateGuildCount

Integer

{
  "updated": Array,
  "bot": Object
}