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
1 week ago
app Add API new message broadcasted event handling to websocket server 1 week ago
bootstrap 1st commit 3 weeks ago
config Change timezone from Europe/Paris to UTC to avoid TZ parsing issues on the bot 2 weeks ago
database Send the message with the broadcast 2 weeks ago
public Add gitignore files for user avatars and guild icons 3 weeks ago
resources 1st commit 3 weeks ago
routes Add API new message broadcasted event handling to websocket server 1 week ago
socket_server Add API new message broadcasted event handling to websocket server 1 week ago
storage 1st commit 3 weeks ago
tests 1st commit 3 weeks ago
.editorconfig 1st commit 3 weeks ago
.env.example 1st commit 3 weeks ago
.gitattributes 1st commit 3 weeks ago
.gitignore Add other ide helper files to gitignore 3 weeks ago
.styleci.yml 1st commit 3 weeks ago
LICENSE 1st commit 3 weeks ago
README.md 1st commit 3 weeks ago
_ide_helper_models.php Add custom model for pivot table 2 weeks ago
artisan 1st commit 3 weeks ago
composer.json Add API new message broadcasted event handling to websocket server 1 week ago
composer.lock Add ide-helper dependency 3 weeks ago
package-lock.json Fire channel subscriptions on gateway server to Redis 2 weeks ago
package.json Fire channel subscriptions on gateway server to Redis 2 weeks ago
phpunit.xml 1st commit 3 weeks ago
server.php 1st commit 3 weeks ago
webpack.mix.js 1st commit 3 weeks 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