ext modules

These modules provide classes used by the cogs. They are primarily built around the rest of CroissantBot’s code, but they could be useful when creating a new cog.

For music

The queue and song modules are provided:

  • The song module provides the Song class, which represents a single song and stores its info.

  • The queue module provides the Queue class, which implements a queue that deals with Song instances.

For PostgreSQL databases

The db module is provided. It provides two classes:

  • A base class (DatabaseConnection) which can connect and disconnect from a database, and check whether it is currently connected.

  • A class (MusicDatabaseConnection) to manage the music database used by the Playlist cog.