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
songmodule provides thesong.Songclass, which represents a single song and stores its info.The
songqueuemodule provides thesongqueue.SongQueueclass, which implements a queue that deals withsong.Songinstances.
For PostgreSQL databases¶
The db module provides the base db.DatabaseConnection class.
It can connect and disconnect from a database, and check whether it is currently connected.
The music_db module provides the music_db.MusicDatabaseConnection class,
which can manage the music database used by the Playlist cog.