A local API for bot testing purposes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
l4p1n 5c2e94b043
Add API new message broadcasted event handling to websocket server
8 months ago
app Add API new message broadcasted event handling to websocket server 8 months ago
bootstrap 1st commit 9 months ago
config Change timezone from Europe/Paris to UTC to avoid TZ parsing issues on the bot 8 months ago
database Send the message with the broadcast 9 months ago
public Add gitignore files for user avatars and guild icons 9 months ago
resources 1st commit 9 months ago
routes Add API new message broadcasted event handling to websocket server 8 months ago
socket_server Add API new message broadcasted event handling to websocket server 8 months ago
storage 1st commit 9 months ago
tests 1st commit 9 months ago
.editorconfig 1st commit 9 months ago
.env.example 1st commit 9 months ago
.gitattributes 1st commit 9 months ago
.gitignore Add other ide helper files to gitignore 9 months ago
.styleci.yml 1st commit 9 months ago
LICENSE 1st commit 9 months ago
README.md 1st commit 9 months ago
_ide_helper_models.php Add custom model for pivot table 9 months ago
artisan 1st commit 9 months ago
composer.json Add API new message broadcasted event handling to websocket server 8 months ago
composer.lock Add ide-helper dependency 9 months ago
package-lock.json Fire channel subscriptions on gateway server to Redis 9 months ago
package.json Fire channel subscriptions on gateway server to Redis 9 months ago
phpunit.xml 1st commit 9 months ago
server.php 1st commit 9 months ago
webpack.mix.js 1st commit 9 months ago

README.md

“API” locale de Discord

Repository d’une API pour tester ses bots en local sans péter les limites de Discord avec distest (migration)

Motivation

J’ai vu quelques repositories ci et là qui implémentaient quelques bibres d’API de Discord (notamment websocket). Sauf que ces repos sont vieux de quelques années et Discord a changé entre temps.

Avec les tests de mon bot Discord qui envoient beaucoup de requêtes en peu de temps, la limite est très vite atteinte et une pause of doom se produit. L’idée de faire une API locale est venue naturellement.

Petit avertissement sur les fonctions

Il n’y aura que les fonctionnalités concernant les messages textuels.

Certaines propriétées de certaines réponses seront codées en dur à des tableaux vides parce que je n’en ai tout simplement pas l’utilité.

License

Voir fichier LICENSE