Skip to content

InfinityBotList/grevolt

Repository files navigation

Grevolt

A low-level library for Revolt focused on being up-to-date and feature-complete with Revolts current API while also being well tested with unit tests and providing a high level of control over all parts of the library to allow both small and large bots to thrive.

Grevolt seperates low-level Client operations from more higher level abstractions by providing extra, a collection of additional utilities for common tasks such as more complex event handling, command handling (TODO) and more!

Why grevolt?

Other libraries had many flaws when inspected. Not to blame these projects, but here are some of the issues I found.

Revolt goes down a lot and in the future may even spew out invalid JSON as it grows, and panicking here is simply infeasible for larger bots. Grevolt instead returns an error and allows the user to handle it for example by restarting the bot or logging the error in a database for example. In addition to this, these libraries often don't Ping the 'official client' way (data is supposed to be a timestamp and not a constant)

Testing

Run go test -v ./... to test stuff

TODO

  • Better usage examples
  • Command handling framework

Credits

Heavy work in progress